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
- CodePageUtils.cs
- ScrollEvent.cs
- TypeInitializationException.cs
- CallbackDebugBehavior.cs
- XmlAttributeOverrides.cs
- COAUTHIDENTITY.cs
- FileSystemWatcher.cs
- IPPacketInformation.cs
- ExceptionUtil.cs
- ReadOnlyCollectionBase.cs
- KeyTimeConverter.cs
- DataGridAutoFormatDialog.cs
- ScriptingProfileServiceSection.cs
- PageSettings.cs
- CodeLabeledStatement.cs
- SqlProcedureAttribute.cs
- ClientEventManager.cs
- XmlUtil.cs
- ModuleConfigurationInfo.cs
- SwitchLevelAttribute.cs
- AnimatedTypeHelpers.cs
- HMACSHA384.cs
- TextLine.cs
- TracedNativeMethods.cs
- AssociationProvider.cs
- WebPartConnectVerb.cs
- HtmlInputHidden.cs
- BehaviorService.cs
- PageCache.cs
- basemetadatamappingvisitor.cs
- UsernameTokenFactoryCredential.cs
- MD5CryptoServiceProvider.cs
- ExceptionTrace.cs
- SplashScreen.cs
- DecodeHelper.cs
- CompilationPass2TaskInternal.cs
- StringResourceManager.cs
- UntypedNullExpression.cs
- SqlHelper.cs
- Point3DAnimationUsingKeyFrames.cs
- EventSinkHelperWriter.cs
- IsolatedStorageException.cs
- ErrorProvider.cs
- DbUpdateCommandTree.cs
- ToolStripTextBox.cs
- EntityDataSourceEntityTypeFilterConverter.cs
- UIElement.cs
- TextLine.cs
- WebPartConnectionsDisconnectVerb.cs
- XmlSchemaSimpleContentExtension.cs
- COM2ColorConverter.cs
- AddInSegmentDirectoryNotFoundException.cs
- DataGridViewColumnConverter.cs
- WmpBitmapDecoder.cs
- ClientTargetCollection.cs
- Models.cs
- MetaTableHelper.cs
- FontFamilyConverter.cs
- ObjectQueryProvider.cs
- PreviewPrintController.cs
- DESCryptoServiceProvider.cs
- WpfKnownTypeInvoker.cs
- PrinterUnitConvert.cs
- ReadingWritingEntityEventArgs.cs
- AlignmentXValidation.cs
- XmlHierarchicalEnumerable.cs
- SequentialUshortCollection.cs
- DataGridItem.cs
- ReturnType.cs
- BitmapEffectInput.cs
- QueryOperatorEnumerator.cs
- IDictionary.cs
- CustomErrorsSectionWrapper.cs
- GB18030Encoding.cs
- DecimalFormatter.cs
- MultiAsyncResult.cs
- MailHeaderInfo.cs
- MaskedTextBoxDesigner.cs
- DesignerSerializationVisibilityAttribute.cs
- ModelService.cs
- BinaryOperationBinder.cs
- DbDataSourceEnumerator.cs
- LoopExpression.cs
- PolicyDesigner.cs
- HtmlToClrEventProxy.cs
- RIPEMD160Managed.cs
- CancelEventArgs.cs
- WpfSharedXamlSchemaContext.cs
- SeekStoryboard.cs
- DataTemplateKey.cs
- NCryptSafeHandles.cs
- PageCache.cs
- DataGridLinkButton.cs
- BuildProvidersCompiler.cs
- GeometryHitTestParameters.cs
- DateTimeParse.cs
- TemplateManager.cs
- BulletDecorator.cs
- NavigationService.cs
- FlagsAttribute.cs