Code:
/ DotNET / DotNET / 8.0 / untmp / 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 [....] 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
- processwaithandle.cs
- OutgoingWebRequestContext.cs
- DoubleConverter.cs
- ProbeDuplexAsyncResult.cs
- DataDocumentXPathNavigator.cs
- MultiSelectRootGridEntry.cs
- Activity.cs
- PersonalizableTypeEntry.cs
- BamlResourceContent.cs
- SyntaxCheck.cs
- QueryOperationResponseOfT.cs
- TemplateBaseAction.cs
- ControlValuePropertyAttribute.cs
- RoutedEventArgs.cs
- TryExpression.cs
- FixedSOMPage.cs
- ToolStripComboBox.cs
- BitmapCodecInfo.cs
- LicFileLicenseProvider.cs
- ButtonFieldBase.cs
- DispatcherExceptionEventArgs.cs
- ConstructorExpr.cs
- ConnectionStringSettings.cs
- ProviderException.cs
- TextRangeBase.cs
- SystemSounds.cs
- Quaternion.cs
- ModifierKeysConverter.cs
- HttpEncoderUtility.cs
- ProxySimple.cs
- PageVisual.cs
- MonthCalendar.cs
- DataGridViewImageColumn.cs
- RelatedImageListAttribute.cs
- AssemblyAssociatedContentFileAttribute.cs
- StrokeSerializer.cs
- MonthCalendar.cs
- ServiceContractViewControl.Designer.cs
- ACL.cs
- WebPartConnectionsCancelEventArgs.cs
- HostExecutionContextManager.cs
- SelectionRangeConverter.cs
- DataBindingCollection.cs
- FixedSOMTableCell.cs
- UserControlAutomationPeer.cs
- DynamicMethod.cs
- Focus.cs
- ZoneButton.cs
- SystemWebCachingSectionGroup.cs
- RemotingServices.cs
- QueryAsyncResult.cs
- Pair.cs
- TextDecoration.cs
- SiteMapDataSource.cs
- StylusPointProperties.cs
- TypeToTreeConverter.cs
- WebPartCancelEventArgs.cs
- HttpModuleActionCollection.cs
- ServiceModelSectionGroup.cs
- PointAnimationClockResource.cs
- SerializationFieldInfo.cs
- Attributes.cs
- RegexCaptureCollection.cs
- ItemCheckEvent.cs
- BitmapPalette.cs
- IntSecurity.cs
- AuthenticatingEventArgs.cs
- FilterEventArgs.cs
- SoapException.cs
- Size3D.cs
- MemberDescriptor.cs
- ComponentFactoryHelpers.cs
- IdnElement.cs
- ConfigurationLocation.cs
- ActivityBindForm.Designer.cs
- PartManifestEntry.cs
- DataServiceContext.cs
- DataSetMappper.cs
- ReferencedCollectionType.cs
- RowUpdatedEventArgs.cs
- ValidationSummary.cs
- TemplateContent.cs
- VisualStyleElement.cs
- KerberosSecurityTokenProvider.cs
- loginstatus.cs
- LineGeometry.cs
- PageThemeCodeDomTreeGenerator.cs
- XmlILIndex.cs
- OleDbParameter.cs
- _UncName.cs
- SourceInterpreter.cs
- TypeReference.cs
- PtsPage.cs
- XomlCompilerHelpers.cs
- InternalsVisibleToAttribute.cs
- StrongTypingException.cs
- DynamicControl.cs
- Track.cs
- SecurityPolicySection.cs
- LinkedResource.cs