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
- DataColumnMappingCollection.cs
- DiagnosticsConfigurationHandler.cs
- AuthenticationService.cs
- GeneratedView.cs
- HtmlInputControl.cs
- Section.cs
- AnnotationService.cs
- ChainOfResponsibility.cs
- SuppressIldasmAttribute.cs
- ModelTreeEnumerator.cs
- SafeFileMappingHandle.cs
- LookupNode.cs
- XamlToRtfWriter.cs
- ByteStream.cs
- regiisutil.cs
- ItemsPresenter.cs
- StringConverter.cs
- JapaneseCalendar.cs
- TransformPattern.cs
- ComponentConverter.cs
- ChainedAsyncResult.cs
- DataGridRelationshipRow.cs
- FixedSOMLineCollection.cs
- DataSourceViewSchemaConverter.cs
- MethodImplAttribute.cs
- clipboard.cs
- DataGridCellClipboardEventArgs.cs
- IISUnsafeMethods.cs
- Table.cs
- EnumBuilder.cs
- UrlPath.cs
- StateBag.cs
- PolicyValidator.cs
- metadatamappinghashervisitor.cs
- FixedSOMFixedBlock.cs
- ToolStripContainerDesigner.cs
- XmlStreamStore.cs
- MethodRental.cs
- SqlResolver.cs
- AbstractDataSvcMapFileLoader.cs
- SessionStateContainer.cs
- CodeExpressionCollection.cs
- SqlComparer.cs
- TextSelection.cs
- FramingDecoders.cs
- EventRoute.cs
- MetadataSerializer.cs
- TreeNodeCollection.cs
- FixedSOMGroup.cs
- SizeFConverter.cs
- PriorityBindingExpression.cs
- AutomationPatternInfo.cs
- ProfileInfo.cs
- EventData.cs
- AutomationPatternInfo.cs
- XPathException.cs
- AnnotationResourceChangedEventArgs.cs
- PolyBezierSegmentFigureLogic.cs
- dataprotectionpermissionattribute.cs
- FlowLayoutSettings.cs
- UIElement.cs
- MenuItemStyleCollection.cs
- SourceElementsCollection.cs
- PropertyManager.cs
- EngineSite.cs
- SafeFileMappingHandle.cs
- LambdaCompiler.Address.cs
- HostedHttpRequestAsyncResult.cs
- HtmlForm.cs
- peersecuritysettings.cs
- ArrayTypeMismatchException.cs
- PeerInputChannel.cs
- MetabaseSettingsIis7.cs
- TranslateTransform3D.cs
- SqlEnums.cs
- HMACSHA512.cs
- TableItemStyle.cs
- DataGridViewButtonColumn.cs
- SortedDictionary.cs
- EncodingInfo.cs
- HMACSHA384.cs
- DataListItemCollection.cs
- HostedBindingBehavior.cs
- ExecutionContext.cs
- RequestChannel.cs
- PhysicalOps.cs
- IncomingWebRequestContext.cs
- OdbcConnectionHandle.cs
- QilStrConcatenator.cs
- Gdiplus.cs
- WebPartConnection.cs
- AspNetCompatibilityRequirementsAttribute.cs
- GridViewSortEventArgs.cs
- ValidationException.cs
- MetadataFile.cs
- DragEventArgs.cs
- HtmlContainerControl.cs
- AtomServiceDocumentSerializer.cs
- ExpressionBuilderCollection.cs
- URLAttribute.cs