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
- ListItemsCollectionEditor.cs
- Currency.cs
- PersonalizableAttribute.cs
- OleDbException.cs
- TraceLog.cs
- SignedXmlDebugLog.cs
- ConfigurationManagerInternal.cs
- SignedPkcs7.cs
- RtfFormatStack.cs
- CachedBitmap.cs
- StorageTypeMapping.cs
- SqlErrorCollection.cs
- AutomationPropertyInfo.cs
- SqlUtil.cs
- _LocalDataStoreMgr.cs
- BatchParser.cs
- XmlCharType.cs
- _TimerThread.cs
- CorrelationResolver.cs
- NullableFloatSumAggregationOperator.cs
- SqlDataSourceSelectingEventArgs.cs
- _NestedMultipleAsyncResult.cs
- HwndSubclass.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- ScriptDescriptor.cs
- CustomLineCap.cs
- HttpContext.cs
- VectorValueSerializer.cs
- DodSequenceMerge.cs
- Error.cs
- MSHTMLHostUtil.cs
- ExpressionConverter.cs
- DetailsViewInsertedEventArgs.cs
- InputDevice.cs
- SapiGrammar.cs
- ObjectDataSourceMethodEventArgs.cs
- BmpBitmapEncoder.cs
- ComboBoxAutomationPeer.cs
- ResourceExpressionEditor.cs
- FrameworkContextData.cs
- SafeRightsManagementPubHandle.cs
- PeerResolver.cs
- DeferredElementTreeState.cs
- RedirectionProxy.cs
- WorkflowServiceNamespace.cs
- CatalogZone.cs
- PriorityItem.cs
- CapabilitiesPattern.cs
- DescendantQuery.cs
- MenuEventArgs.cs
- XsdCachingReader.cs
- ProgressBar.cs
- HashFinalRequest.cs
- ObjectListCommandCollection.cs
- PieceDirectory.cs
- Transform.cs
- DataGridColumnReorderingEventArgs.cs
- CodeCatchClause.cs
- EncryptedXml.cs
- MarginCollapsingState.cs
- ResourceProviderFactory.cs
- RemoteWebConfigurationHostStream.cs
- CompatibleComparer.cs
- SqlDependency.cs
- Margins.cs
- DnsPermission.cs
- IgnoreFileBuildProvider.cs
- DiscoveryServiceExtension.cs
- TextSimpleMarkerProperties.cs
- BitStream.cs
- ExpressionParser.cs
- VariableQuery.cs
- FileAuthorizationModule.cs
- COM2ExtendedBrowsingHandler.cs
- ComboBox.cs
- DateBoldEvent.cs
- DayRenderEvent.cs
- ColumnProvider.cs
- DataViewSettingCollection.cs
- IResourceProvider.cs
- PowerEase.cs
- RequestStatusBarUpdateEventArgs.cs
- XmlSchemaAnnotated.cs
- OdbcConnection.cs
- GeneralTransform.cs
- LocatorGroup.cs
- AuthenticationService.cs
- ZipIOCentralDirectoryFileHeader.cs
- CompModSwitches.cs
- LayoutEngine.cs
- DispatcherSynchronizationContext.cs
- OleDbRowUpdatedEvent.cs
- AlternateView.cs
- _BasicClient.cs
- MeasureItemEvent.cs
- CaretElement.cs
- FontResourceCache.cs
- GridViewColumn.cs
- ControlPropertyNameConverter.cs
- StretchValidation.cs