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
- SqlDataSourceParameterParser.cs
- ProjectionCamera.cs
- _BasicClient.cs
- CommandConverter.cs
- GroupStyle.cs
- TabItemWrapperAutomationPeer.cs
- ExceptionAggregator.cs
- Pair.cs
- mactripleDES.cs
- Timer.cs
- TraceUtility.cs
- PolyQuadraticBezierSegment.cs
- GridViewRowCollection.cs
- SingleObjectCollection.cs
- NumberSubstitution.cs
- DragCompletedEventArgs.cs
- NegotiationTokenAuthenticatorState.cs
- VarRemapper.cs
- SafeNativeMethodsOther.cs
- ProfileSettings.cs
- Vector.cs
- GeneralTransformGroup.cs
- OpenTypeMethods.cs
- COSERVERINFO.cs
- ProviderSettingsCollection.cs
- TextWriter.cs
- CollectionViewGroupRoot.cs
- BooleanFunctions.cs
- CollectionViewGroupRoot.cs
- TextParagraphProperties.cs
- ProgressiveCrcCalculatingStream.cs
- Attachment.cs
- WorkflowFormatterBehavior.cs
- ImageSource.cs
- AssemblyName.cs
- DataServiceException.cs
- CodeObjectCreateExpression.cs
- Executor.cs
- WrappedDispatcherException.cs
- GeneralTransform.cs
- ToolboxCategoryItems.cs
- TableColumnCollection.cs
- DecimalFormatter.cs
- GlyphElement.cs
- MetadataArtifactLoaderCompositeFile.cs
- SafeRightsManagementPubHandle.cs
- SqlComparer.cs
- BaseProcessor.cs
- SizeChangedInfo.cs
- XhtmlConformanceSection.cs
- StorageEntityTypeMapping.cs
- Rfc2898DeriveBytes.cs
- StdValidatorsAndConverters.cs
- HttpHostedTransportConfiguration.cs
- BasicHttpSecurity.cs
- BinaryObjectInfo.cs
- ExpressionPrinter.cs
- ApplicationDirectory.cs
- _FixedSizeReader.cs
- ApplicationInfo.cs
- SafeEventLogReadHandle.cs
- MappingSource.cs
- IPGlobalProperties.cs
- XmlIncludeAttribute.cs
- Application.cs
- CorrelationScope.cs
- ExpressionBuilderCollection.cs
- __ConsoleStream.cs
- ArrayTypeMismatchException.cs
- CultureInfo.cs
- Dispatcher.cs
- DataKeyArray.cs
- LockCookie.cs
- GrowingArray.cs
- AutomationPatternInfo.cs
- CellRelation.cs
- InstanceStore.cs
- EntityViewContainer.cs
- InvalidOperationException.cs
- ApplicationBuildProvider.cs
- DesignerVerbCollection.cs
- SecurityDocument.cs
- DeadCharTextComposition.cs
- VisualStyleRenderer.cs
- DoubleAverageAggregationOperator.cs
- MDIControlStrip.cs
- ZipPackagePart.cs
- WindowShowOrOpenTracker.cs
- ScrollProviderWrapper.cs
- TemplatedWizardStep.cs
- ParallelTimeline.cs
- GridItemCollection.cs
- ResourceExpression.cs
- DocumentPage.cs
- LogLogRecord.cs
- DoubleConverter.cs
- StatementContext.cs
- SqlProviderManifest.cs
- ChtmlImageAdapter.cs
- Stopwatch.cs