Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Speech / Src / Internal / SrgsCompiler / ParseElement.cs / 1 / ParseElement.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: // // History: // 11/15/2004 [....] Created from the Kurosawa Code //--------------------------------------------------------------------------- #region Using directives using System; using System.Collections.ObjectModel; using System.Speech.Internal.SrgsParser; #endregion namespace System.Speech.Internal.SrgsCompiler { // Elements of the ParseStack // SRGSNamespace.Grammar // _startState, _endState are ignored and set to 0. // SRGSNamespace.Rule // startElement() _startState = new Rule().InitialState // _endState = _startState (Updated by the child elements) // endElement() AddEpsilonTransition(_endState -> terminating state null) // SRGSNamespace.RuleRef/Token/Tag/Item(Parent!=OneOf) // startElement() _startState = Parent._startState // _endState = _startState (Updated by the child elements) // endElement() Parent._endState = _endState // SRGSNamespace.OneOf // startElement() _startState = Parent._startState // _endState = new State // endElement() Parent._endState = _endState // SRGSNamespace.Item(Parent==OneOf) // startElement() _startState = Parent._startState // _endState = _startState (Updated by the child elements) // endElement() AddEpsilonTransition(_endState -> Parent._endState) // SRGSNamespace.Example/Lexicon/Meta // _startState, _endState are ignored and set to 0. // SRGSNamespace.Metadata / Unknown.* // _startState, _endState are ignored and set to 0. // ParseElements is added to the stack, but not used. internal abstract class ParseElement : IElement // Compiler stack element { internal ParseElement (Rule rule) { _rule = rule; } #pragma warning disable 649 // Token - Required confidence internal int _confidence; #pragma warning restore 649 void IElement.PostParse (IElement parent) { } internal Rule _rule; } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SharedHttpsTransportManager.cs
- ELinqQueryState.cs
- FormsAuthenticationCredentials.cs
- IsolationInterop.cs
- Size3DConverter.cs
- CheckBoxRenderer.cs
- NamespaceMapping.cs
- oledbconnectionstring.cs
- MsmqIntegrationProcessProtocolHandler.cs
- ColumnMapVisitor.cs
- SoapHeaderAttribute.cs
- ObjectAssociationEndMapping.cs
- XmlNodeList.cs
- SettingsProperty.cs
- DataGridTextBoxColumn.cs
- DesignBindingConverter.cs
- ClientConfigPaths.cs
- Tuple.cs
- ListViewInsertEventArgs.cs
- DirectoryObjectSecurity.cs
- HttpCapabilitiesBase.cs
- XmlSerializationWriter.cs
- StylusShape.cs
- EmbossBitmapEffect.cs
- StagingAreaInputItem.cs
- CapabilitiesAssignment.cs
- QuaternionAnimationBase.cs
- TreeView.cs
- OleDbErrorCollection.cs
- SimpleFieldTemplateFactory.cs
- KeyFrames.cs
- TimeSpanStorage.cs
- DataPagerField.cs
- QuerySetOp.cs
- Parser.cs
- sqlinternaltransaction.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- SafeHandles.cs
- TextDecorationCollectionConverter.cs
- XPathDescendantIterator.cs
- GeneralTransform3DGroup.cs
- XmlSchemaInferenceException.cs
- DataServiceQuery.cs
- Input.cs
- RenameRuleObjectDialog.Designer.cs
- ThreadStartException.cs
- ProfileSection.cs
- RolePrincipal.cs
- WindowsListView.cs
- X509Certificate2.cs
- XmlQueryType.cs
- SoapSchemaMember.cs
- DataGridItem.cs
- SystemParameters.cs
- HtmlInputRadioButton.cs
- SqlCommand.cs
- PhonemeConverter.cs
- KeyNotFoundException.cs
- MessageQueueException.cs
- MetadataStore.cs
- CodeAttributeDeclarationCollection.cs
- Token.cs
- LineBreak.cs
- MeasureItemEvent.cs
- ConfigXmlSignificantWhitespace.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- WebHttpSecurityElement.cs
- ImageDesigner.cs
- sqlpipe.cs
- DefaultTypeArgumentAttribute.cs
- GeometryConverter.cs
- AliasGenerator.cs
- EventBindingService.cs
- ProviderConnectionPointCollection.cs
- FlowDocumentScrollViewer.cs
- RequestCachingSection.cs
- MemberPath.cs
- PageThemeParser.cs
- ProgressBar.cs
- SqlRowUpdatingEvent.cs
- FieldNameLookup.cs
- WsdlImporter.cs
- DataGridItem.cs
- LoaderAllocator.cs
- CryptoHelper.cs
- FilterElement.cs
- ReversePositionQuery.cs
- _AcceptOverlappedAsyncResult.cs
- MetadataItemSerializer.cs
- TrustLevelCollection.cs
- XmlStringTable.cs
- StringPropertyBuilder.cs
- MatrixAnimationBase.cs
- RoleBoolean.cs
- _IPv6Address.cs
- RegexNode.cs
- ParameterToken.cs
- DataSourceConverter.cs
- XappLauncher.cs
- ClientConvert.cs