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
- SoapUnknownHeader.cs
- SBCSCodePageEncoding.cs
- HtmlInputImage.cs
- SafeFileMappingHandle.cs
- PathStreamGeometryContext.cs
- EventHandlersStore.cs
- LiteralTextParser.cs
- CommandConverter.cs
- SpellerError.cs
- ActionNotSupportedException.cs
- IPGlobalProperties.cs
- PeoplePickerWrapper.cs
- BooleanFacetDescriptionElement.cs
- AppDomainAttributes.cs
- OleDbSchemaGuid.cs
- Selection.cs
- EnumMemberAttribute.cs
- DbConnectionPoolIdentity.cs
- RoleManagerEventArgs.cs
- XmlSignatureManifest.cs
- DataContractSet.cs
- UInt32.cs
- PresentationTraceSources.cs
- EncodingTable.cs
- QuaternionAnimationBase.cs
- Scheduler.cs
- TaiwanCalendar.cs
- DataGridViewColumnCollection.cs
- IxmlLineInfo.cs
- OperationInfoBase.cs
- MenuItemAutomationPeer.cs
- MenuEventArgs.cs
- FileDialogCustomPlace.cs
- DialogDivider.cs
- XPathItem.cs
- XPathMessageFilter.cs
- ButtonAutomationPeer.cs
- CodeConstructor.cs
- DropTarget.cs
- XmlQueryTypeFactory.cs
- HtmlControlPersistable.cs
- PolicyManager.cs
- ToolStripDropDownMenu.cs
- ElementProxy.cs
- LinqToSqlWrapper.cs
- AutomationPatternInfo.cs
- UpdateManifestForBrowserApplication.cs
- ResolveNameEventArgs.cs
- DCSafeHandle.cs
- ReadOnlyCollectionBase.cs
- RegexStringValidator.cs
- SingleAnimation.cs
- NativeMethods.cs
- Rule.cs
- Environment.cs
- ImageBrush.cs
- StylusPointPropertyId.cs
- TextInfo.cs
- CodeGeneratorOptions.cs
- GeneratedCodeAttribute.cs
- ContextDataSourceView.cs
- TypefaceMap.cs
- dataSvcMapFileLoader.cs
- storepermission.cs
- Propagator.cs
- Predicate.cs
- SingleKeyFrameCollection.cs
- PageContent.cs
- ParserOptions.cs
- RIPEMD160Managed.cs
- TextContainerChangedEventArgs.cs
- ZipFileInfoCollection.cs
- LocatorPartList.cs
- UpDownBase.cs
- LineProperties.cs
- SoapReflectionImporter.cs
- regiisutil.cs
- CellRelation.cs
- TextLineResult.cs
- Frame.cs
- NonClientArea.cs
- SizeValueSerializer.cs
- DataTemplateKey.cs
- ActivityXRefConverter.cs
- SessionEndedEventArgs.cs
- SafeRegistryHandle.cs
- BuildResult.cs
- WebBrowserPermission.cs
- ConstraintEnumerator.cs
- MetadataItem.cs
- COM2ICategorizePropertiesHandler.cs
- ProtocolsConfiguration.cs
- SoapHttpTransportImporter.cs
- ServicePerformanceCounters.cs
- GridViewUpdateEventArgs.cs
- TemplateBuilder.cs
- ProcessModelInfo.cs
- _AutoWebProxyScriptEngine.cs
- DescendentsWalkerBase.cs
- MaskedTextProvider.cs