Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / 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 jeanfp 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. //---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: // // History: // 11/15/2004 jeanfp 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
- SerializationHelper.cs
- PageContentCollection.cs
- _ConnectStream.cs
- RegistryKey.cs
- StringOutput.cs
- RecognizerStateChangedEventArgs.cs
- IPHostEntry.cs
- NavigateEvent.cs
- SqlDuplicator.cs
- TemplateLookupAction.cs
- CollaborationHelperFunctions.cs
- CodeChecksumPragma.cs
- ScriptControlDescriptor.cs
- QueuePropertyVariants.cs
- HuffModule.cs
- NamespaceTable.cs
- AttachedPropertyInfo.cs
- JobCollate.cs
- Module.cs
- DataGridViewCellStyle.cs
- SiteMapNodeItem.cs
- CompilerErrorCollection.cs
- ProcessInfo.cs
- COM2ExtendedTypeConverter.cs
- RequestCachePolicyConverter.cs
- Pair.cs
- ScrollItemProviderWrapper.cs
- UnitySerializationHolder.cs
- ListParaClient.cs
- CardSpacePolicyElement.cs
- HorizontalAlignConverter.cs
- EntityFunctions.cs
- CmsUtils.cs
- DataReceivedEventArgs.cs
- ProjectionPruner.cs
- XpsInterleavingPolicy.cs
- UrlAuthorizationModule.cs
- ListBoxItem.cs
- RC2.cs
- XmlSchemaInferenceException.cs
- ISAPIRuntime.cs
- BasicExpandProvider.cs
- SpeechDetectedEventArgs.cs
- SafeCoTaskMem.cs
- IntranetCredentialPolicy.cs
- XmlSchemaParticle.cs
- ShutDownListener.cs
- DisplayToken.cs
- SystemWebSectionGroup.cs
- XNodeNavigator.cs
- ColorConvertedBitmapExtension.cs
- SecurityTokenException.cs
- Section.cs
- ReadOnlyActivityGlyph.cs
- XmlQueryCardinality.cs
- TimeSpanConverter.cs
- TreeNodeEventArgs.cs
- TableHeaderCell.cs
- ActivityCompletionCallbackWrapper.cs
- EnvelopedSignatureTransform.cs
- PresentationTraceSources.cs
- XmlDataProvider.cs
- FieldAccessException.cs
- securestring.cs
- SqlDataSourceCache.cs
- CodeDOMUtility.cs
- TracingConnectionInitiator.cs
- ParserHooks.cs
- XsdDuration.cs
- CodeTypeReference.cs
- ColorConvertedBitmap.cs
- BindUriHelper.cs
- SafeNativeMethodsCLR.cs
- CommonProperties.cs
- TheQuery.cs
- CredentialCache.cs
- TcpTransportManager.cs
- TextViewBase.cs
- basenumberconverter.cs
- Int32Rect.cs
- WebPartConnectionsCancelVerb.cs
- FactoryGenerator.cs
- SplineQuaternionKeyFrame.cs
- MessageProtectionOrder.cs
- DataGridCellInfo.cs
- Package.cs
- MatrixKeyFrameCollection.cs
- CatalogPartChrome.cs
- IfAction.cs
- CLSCompliantAttribute.cs
- GridViewPageEventArgs.cs
- SerialPort.cs
- CustomCredentialPolicy.cs
- ExternalException.cs
- SqlUtils.cs
- CatalogPartCollection.cs
- HttpCacheVary.cs
- DateTimeConstantAttribute.cs
- MobileControlDesigner.cs
- SqlNodeTypeOperators.cs