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
- FormsAuthenticationTicket.cs
- ZoomPercentageConverter.cs
- XsltException.cs
- XhtmlBasicCommandAdapter.cs
- XamlClipboardData.cs
- HtmlInputImage.cs
- PointHitTestResult.cs
- TaskFormBase.cs
- User.cs
- ToolboxComponentsCreatingEventArgs.cs
- InsufficientMemoryException.cs
- RegexCharClass.cs
- KeyGestureConverter.cs
- XmlDesignerDataSourceView.cs
- GetRecipientListRequest.cs
- ResourcesGenerator.cs
- CommandBinding.cs
- SectionXmlInfo.cs
- TypeDescriptionProvider.cs
- DependencyPropertyConverter.cs
- DataGridViewCellCollection.cs
- EventLogPermissionEntryCollection.cs
- ListDataBindEventArgs.cs
- MLangCodePageEncoding.cs
- System.Data.OracleClient_BID.cs
- TransactionException.cs
- WebPart.cs
- ComNativeDescriptor.cs
- XmlImplementation.cs
- FocusWithinProperty.cs
- RectangleGeometry.cs
- ThreadExceptionDialog.cs
- NodeFunctions.cs
- BamlTreeMap.cs
- Nullable.cs
- ListGeneralPage.cs
- HttpCacheParams.cs
- TreeNodeCollection.cs
- BufferAllocator.cs
- ActivityScheduledQuery.cs
- AlignmentYValidation.cs
- BindToObject.cs
- TextEndOfParagraph.cs
- EventLogInformation.cs
- TextRangeBase.cs
- QueryInterceptorAttribute.cs
- XsltContext.cs
- MenuCommandService.cs
- ErrorProvider.cs
- login.cs
- WpfKnownType.cs
- TraceHelpers.cs
- SynchronizedCollection.cs
- ReadOnlyTernaryTree.cs
- ReflectionHelper.cs
- ZoomPercentageConverter.cs
- PermissionRequestEvidence.cs
- DbConnectionPoolGroupProviderInfo.cs
- ContentType.cs
- EntitySqlQueryState.cs
- PlanCompiler.cs
- XmlSchemaIdentityConstraint.cs
- XamlLoadErrorInfo.cs
- ObjectParameter.cs
- TransformerInfoCollection.cs
- MobileControlsSectionHelper.cs
- SiteMapNode.cs
- CompilerCollection.cs
- TextEncodedRawTextWriter.cs
- IPPacketInformation.cs
- RegexCaptureCollection.cs
- AuthenticateEventArgs.cs
- DbCommandTree.cs
- StateDesignerConnector.cs
- AppDomainEvidenceFactory.cs
- SrgsText.cs
- ExpandSegment.cs
- X509PeerCertificateAuthentication.cs
- SingleBodyParameterMessageFormatter.cs
- ComponentChangingEvent.cs
- ResourceManagerWrapper.cs
- CaseStatementProjectedSlot.cs
- ExpressionConverter.cs
- RelationHandler.cs
- ManagedCodeMarkers.cs
- TemplateField.cs
- SqlProviderManifest.cs
- OracleColumn.cs
- PrivacyNoticeElement.cs
- ErrorFormatter.cs
- BindingMAnagerBase.cs
- TagMapInfo.cs
- QueryResults.cs
- BrowserCapabilitiesFactoryBase.cs
- NativeMethods.cs
- AnnotationComponentChooser.cs
- TransformPattern.cs
- CodeArrayIndexerExpression.cs
- ReadOnlyState.cs
- DataRelationPropertyDescriptor.cs