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
- ShadowGlyph.cs
- SelectionItemProviderWrapper.cs
- BitmapPalettes.cs
- XamlSerializerUtil.cs
- ValidationEventArgs.cs
- ProtocolsSection.cs
- DataBoundControlDesigner.cs
- RelationshipEnd.cs
- Vector3DValueSerializer.cs
- MonitoringDescriptionAttribute.cs
- InputBindingCollection.cs
- RelatedView.cs
- Messages.cs
- CellPartitioner.cs
- Path.cs
- DataGridBoolColumn.cs
- Cursor.cs
- OdbcError.cs
- UserInitiatedNavigationPermission.cs
- EventPrivateKey.cs
- ConfigurationStrings.cs
- TextRangeAdaptor.cs
- CompositeActivityTypeDescriptorProvider.cs
- SqlNotificationEventArgs.cs
- ModuleBuilderData.cs
- SourceElementsCollection.cs
- MatcherBuilder.cs
- bindurihelper.cs
- PropertyGrid.cs
- EllipticalNodeOperations.cs
- CharEntityEncoderFallback.cs
- XsdDuration.cs
- HostingEnvironmentSection.cs
- path.cs
- UseAttributeSetsAction.cs
- FilterQuery.cs
- InteropAutomationProvider.cs
- WaitHandleCannotBeOpenedException.cs
- GridView.cs
- XPathNavigatorReader.cs
- PolygonHotSpot.cs
- ListBase.cs
- UserMapPath.cs
- XmlSchemaComplexContentExtension.cs
- Win32Native.cs
- SymmetricAlgorithm.cs
- SrgsSubset.cs
- SqlTrackingWorkflowInstance.cs
- __TransparentProxy.cs
- TextMessageEncodingElement.cs
- ModelVisual3D.cs
- MediaEntryAttribute.cs
- HttpsHostedTransportConfiguration.cs
- ReadOnlyMetadataCollection.cs
- DataGridRelationshipRow.cs
- NonBatchDirectoryCompiler.cs
- _TLSstream.cs
- LongValidator.cs
- DataKey.cs
- TrackingStringDictionary.cs
- TableLayoutPanelDesigner.cs
- StateDesigner.cs
- AdRotatorDesigner.cs
- MessageEncoderFactory.cs
- TableCell.cs
- ManipulationPivot.cs
- SqlWriter.cs
- GeneralTransform3D.cs
- InternalSafeNativeMethods.cs
- TreeNodeEventArgs.cs
- _SSPIWrapper.cs
- EventHandlersDesigner.cs
- OracleParameter.cs
- ProxyWebPart.cs
- EventSourceCreationData.cs
- DataGridViewRowsRemovedEventArgs.cs
- IgnoreDataMemberAttribute.cs
- WpfSharedBamlSchemaContext.cs
- AliasedSlot.cs
- LoginCancelEventArgs.cs
- commandenforcer.cs
- DataViewListener.cs
- TemplateKey.cs
- CompareValidator.cs
- _HeaderInfoTable.cs
- prompt.cs
- FacetEnabledSchemaElement.cs
- ErrorTableItemStyle.cs
- SqlRowUpdatingEvent.cs
- ErrorProvider.cs
- PersonalizablePropertyEntry.cs
- MetadataCache.cs
- DefaultPropertyAttribute.cs
- TraceUtility.cs
- XmlLoader.cs
- ClientRolePrincipal.cs
- CodeTypeMember.cs
- XmlConvert.cs
- PathFigure.cs
- SqlBuilder.cs