Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / 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
- UnsafeNativeMethods.cs
- AssemblyNameProxy.cs
- UserPreferenceChangingEventArgs.cs
- compensatingcollection.cs
- DiscoveryOperationContextExtension.cs
- GrammarBuilderDictation.cs
- StringFunctions.cs
- HtmlSelect.cs
- BrowserCapabilitiesCodeGenerator.cs
- DialogDivider.cs
- ContentFilePart.cs
- ToolStripOverflowButton.cs
- ReadOnlyDataSource.cs
- AccessDataSource.cs
- BamlBinaryReader.cs
- PersonalizationStateInfo.cs
- InternalBufferOverflowException.cs
- ItemDragEvent.cs
- TrackingValidationObjectDictionary.cs
- WebPartCatalogAddVerb.cs
- TemplateBindingExtensionConverter.cs
- UpdateTracker.cs
- sqlmetadatafactory.cs
- IndependentAnimationStorage.cs
- ContentPresenter.cs
- TableLayoutStyleCollection.cs
- DiagnosticTraceSchemas.cs
- LinqDataSourceView.cs
- TransformGroup.cs
- ToggleProviderWrapper.cs
- XmlAtomicValue.cs
- WindowsAuthenticationEventArgs.cs
- ThreadExceptionEvent.cs
- BitmapEffectDrawing.cs
- StrokeSerializer.cs
- ResponseStream.cs
- InfoCardBaseException.cs
- SqlDataSourceStatusEventArgs.cs
- HandledMouseEvent.cs
- Registry.cs
- DocumentXmlWriter.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- DataListAutoFormat.cs
- RowsCopiedEventArgs.cs
- DbDataSourceEnumerator.cs
- hwndwrapper.cs
- PackWebResponse.cs
- SqlNode.cs
- WebPartConnectionCollection.cs
- RubberbandSelector.cs
- CatalogPart.cs
- ProxyFragment.cs
- PrintPreviewGraphics.cs
- CodeStatement.cs
- XmlSerializationGeneratedCode.cs
- Console.cs
- ProcessHostServerConfig.cs
- EntryPointNotFoundException.cs
- ListControlDataBindingHandler.cs
- SqlReferenceCollection.cs
- CuspData.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- _TLSstream.cs
- RequestNavigateEventArgs.cs
- SafeSecurityHandles.cs
- TcpPortSharing.cs
- XmlReflectionImporter.cs
- CollectionBase.cs
- SystemIPInterfaceStatistics.cs
- ListViewCommandEventArgs.cs
- DefaultValueTypeConverter.cs
- TextSchema.cs
- Button.cs
- TextBoxView.cs
- DataGridViewRowsAddedEventArgs.cs
- sqlcontext.cs
- IgnoreDataMemberAttribute.cs
- WebServiceTypeData.cs
- MaskedTextProvider.cs
- Base64Decoder.cs
- PrimaryKeyTypeConverter.cs
- RedirectionProxy.cs
- XpsFilter.cs
- XsltCompileContext.cs
- SettingsContext.cs
- InvalidCastException.cs
- AQNBuilder.cs
- EventSource.cs
- CodeGenerationManager.cs
- _Win32.cs
- PanelStyle.cs
- Compiler.cs
- DbConnectionHelper.cs
- AuthenticateEventArgs.cs
- ZipPackage.cs
- RepeatButtonAutomationPeer.cs
- MultiBinding.cs
- CommentAction.cs
- QueryCoreOp.cs
- MoveSizeWinEventHandler.cs