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
- WindowsAuthenticationEventArgs.cs
- ImageFormat.cs
- AutomationProperty.cs
- SignatureHelper.cs
- SecurityHeader.cs
- DataGridItem.cs
- SponsorHelper.cs
- ProjectionPlanCompiler.cs
- Timeline.cs
- HttpModulesSection.cs
- Vector3D.cs
- WinOEToolBoxItem.cs
- NavigationWindow.cs
- XPathNode.cs
- EntityDataSourceSelectingEventArgs.cs
- XmlWrappingWriter.cs
- DisposableCollectionWrapper.cs
- XmlJsonReader.cs
- DataGridViewAccessibleObject.cs
- DataServiceContext.cs
- LogWriteRestartAreaAsyncResult.cs
- TransformPattern.cs
- TypeSemantics.cs
- SqlCrossApplyToCrossJoin.cs
- CustomExpressionEventArgs.cs
- DataGridViewCellStyleConverter.cs
- Listbox.cs
- DataGridColumnFloatingHeader.cs
- EnterpriseServicesHelper.cs
- WebConfigurationHost.cs
- UInt64Storage.cs
- TranslateTransform.cs
- DesignerView.Commands.cs
- InternalUserCancelledException.cs
- RuleSettings.cs
- ComponentRenameEvent.cs
- UnescapedXmlDiagnosticData.cs
- TraceSection.cs
- ImageClickEventArgs.cs
- XamlPoint3DCollectionSerializer.cs
- SecurityPermission.cs
- Compiler.cs
- PermissionSetTriple.cs
- PolygonHotSpot.cs
- FileUtil.cs
- PrefixHandle.cs
- CriticalHandle.cs
- Point3D.cs
- ProtocolsConfigurationHandler.cs
- AuthenticationServiceManager.cs
- SafeProcessHandle.cs
- DataGridViewComboBoxCell.cs
- OleDbFactory.cs
- PathGeometry.cs
- SafeHandles.cs
- DbProviderFactoriesConfigurationHandler.cs
- HttpWebResponse.cs
- ConfigXmlCDataSection.cs
- QilList.cs
- DataGridViewRowHeaderCell.cs
- SQLDecimalStorage.cs
- DashStyle.cs
- X509IssuerSerialKeyIdentifierClause.cs
- RegexWorker.cs
- WebPartEditorApplyVerb.cs
- ContentPlaceHolder.cs
- ComplexPropertyEntry.cs
- ToolBarButtonClickEvent.cs
- StreamInfo.cs
- WSFederationHttpSecurity.cs
- DbProviderSpecificTypePropertyAttribute.cs
- TableLayout.cs
- UpdatePanelTriggerCollection.cs
- ExtensionDataObject.cs
- SafeNativeMethods.cs
- Pen.cs
- webeventbuffer.cs
- DataRow.cs
- ColumnMapTranslator.cs
- EntityDesignerBuildProvider.cs
- PathNode.cs
- MimeMapping.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- ResourceExpression.cs
- SetIndexBinder.cs
- PassportAuthenticationEventArgs.cs
- CodeObject.cs
- TileModeValidation.cs
- DoubleStorage.cs
- DocumentSequenceHighlightLayer.cs
- ClientConvert.cs
- AudioLevelUpdatedEventArgs.cs
- AspCompat.cs
- BuildResult.cs
- ObjectStateEntryDbDataRecord.cs
- SessionParameter.cs
- NetCodeGroup.cs
- HasCopySemanticsAttribute.cs
- CatalogZone.cs
- HandleDictionary.cs