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
- HtmlFormParameterWriter.cs
- HyperLinkField.cs
- QuaternionKeyFrameCollection.cs
- HandleRef.cs
- ConsoleEntryPoint.cs
- DataGridItemAutomationPeer.cs
- CompiledXpathExpr.cs
- FontSourceCollection.cs
- StackSpiller.Bindings.cs
- XmlIlVisitor.cs
- WindowsTitleBar.cs
- FormsAuthentication.cs
- PeerName.cs
- CancellationState.cs
- CodeDefaultValueExpression.cs
- Rect3DValueSerializer.cs
- XamlSerializationHelper.cs
- QueryCacheEntry.cs
- CFStream.cs
- SslStream.cs
- MimeBasePart.cs
- CodeAccessSecurityEngine.cs
- SectionUpdates.cs
- MetadataArtifactLoaderCompositeResource.cs
- LocalizedNameDescriptionPair.cs
- ExtensionWindowHeader.cs
- ParserExtension.cs
- UIAgentRequest.cs
- DataSourceCacheDurationConverter.cs
- HttpWebRequestElement.cs
- Thread.cs
- basemetadatamappingvisitor.cs
- ProfileSettings.cs
- DataServiceHostFactory.cs
- ToolStripDropDownClosedEventArgs.cs
- SQLSingle.cs
- ResourceIDHelper.cs
- WorkflowMessageEventHandler.cs
- ExpandCollapseIsCheckedConverter.cs
- LinkClickEvent.cs
- JoinTreeSlot.cs
- TextEvent.cs
- MdiWindowListItemConverter.cs
- XmlNodeList.cs
- NativeMethods.cs
- HtmlInputFile.cs
- SystemIPInterfaceStatistics.cs
- DataPagerFieldCollection.cs
- Pair.cs
- MultiPartWriter.cs
- PeerPresenceInfo.cs
- InstanceDescriptor.cs
- HMACRIPEMD160.cs
- FunctionDescription.cs
- ErrorInfoXmlDocument.cs
- PageTheme.cs
- UserControlBuildProvider.cs
- WpfXamlType.cs
- SecureUICommand.cs
- SystemWebCachingSectionGroup.cs
- ServiceEndpointCollection.cs
- RSACryptoServiceProvider.cs
- TCPClient.cs
- RadioButton.cs
- List.cs
- _ListenerAsyncResult.cs
- SqlUDTStorage.cs
- TextServicesHost.cs
- BoundsDrawingContextWalker.cs
- XhtmlConformanceSection.cs
- DateTimeSerializationSection.cs
- LocalFileSettingsProvider.cs
- SymLanguageVendor.cs
- SspiNegotiationTokenProvider.cs
- LateBoundBitmapDecoder.cs
- ConfigurationStrings.cs
- DataGridViewTextBoxColumn.cs
- ProvidePropertyAttribute.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- ComponentEvent.cs
- RecognizedAudio.cs
- BitVector32.cs
- XmlName.cs
- PieceDirectory.cs
- Enlistment.cs
- PointAnimationUsingKeyFrames.cs
- SessionEndedEventArgs.cs
- PlainXmlWriter.cs
- XmlTextWriter.cs
- LoadMessageLogger.cs
- ToolStripPanel.cs
- DataGridViewColumnHeaderCell.cs
- CellLabel.cs
- SamlAssertion.cs
- DesignerActionVerbList.cs
- DesignerAutoFormatStyle.cs
- TransactionProtocolConverter.cs
- DesignerAdRotatorAdapter.cs
- TiffBitmapDecoder.cs
- StretchValidation.cs