Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / 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
- TimeIntervalCollection.cs
- RoleServiceManager.cs
- DbModificationCommandTree.cs
- BufferedReceiveManager.cs
- MdiWindowListStrip.cs
- Events.cs
- ValidationError.cs
- WebPartVerbCollection.cs
- RadioButton.cs
- XsltArgumentList.cs
- EntityDataSourceWrapper.cs
- MemberPathMap.cs
- PropertyEmitter.cs
- RecognitionEventArgs.cs
- WebRequest.cs
- LongValidator.cs
- BuildDependencySet.cs
- RectangleGeometry.cs
- TreeViewEvent.cs
- UnsafeNativeMethods.cs
- FamilyTypeface.cs
- WeakReferenceList.cs
- DBCommandBuilder.cs
- DataControlImageButton.cs
- SizeFConverter.cs
- MeasureData.cs
- DiscoveryDefaults.cs
- AuthenticationSection.cs
- EndEvent.cs
- OpenTypeLayout.cs
- PeerContact.cs
- OledbConnectionStringbuilder.cs
- ParseNumbers.cs
- KnownBoxes.cs
- TdsParser.cs
- TreeNodeConverter.cs
- TemplateColumn.cs
- CompositeKey.cs
- Deflater.cs
- AttributeQuery.cs
- PropertyCondition.cs
- LayoutDump.cs
- CapabilitiesAssignment.cs
- AsyncResult.cs
- OdbcTransaction.cs
- TextWriter.cs
- ConfigXmlCDataSection.cs
- ListViewGroup.cs
- TransformPatternIdentifiers.cs
- ToolStripLabel.cs
- SqlConnectionStringBuilder.cs
- WindowsSecurityToken.cs
- ValueUnavailableException.cs
- OperationFormatter.cs
- OutputCacheSettingsSection.cs
- SplitterPanel.cs
- ScrollEvent.cs
- WindowInteractionStateTracker.cs
- ConstraintCollection.cs
- DropDownList.cs
- SingleStorage.cs
- SizeKeyFrameCollection.cs
- RenderData.cs
- Geometry3D.cs
- ResXDataNode.cs
- ResourceDictionaryCollection.cs
- ProtocolElementCollection.cs
- FormParameter.cs
- ActivitySurrogate.cs
- ProfileManager.cs
- ColorInterpolationModeValidation.cs
- SqlTypeConverter.cs
- XmlQueryOutput.cs
- LinkGrep.cs
- NullNotAllowedCollection.cs
- NavigationHelper.cs
- EditorPart.cs
- CodeMethodInvokeExpression.cs
- StyleBamlRecordReader.cs
- ProxySimple.cs
- ViewCellSlot.cs
- invalidudtexception.cs
- TemplateParser.cs
- PointLightBase.cs
- BigInt.cs
- returneventsaver.cs
- ParserExtension.cs
- TextLineResult.cs
- MenuItemCollection.cs
- _StreamFramer.cs
- ResourceContainer.cs
- LicFileLicenseProvider.cs
- NeutralResourcesLanguageAttribute.cs
- TemplateBindingExtensionConverter.cs
- HwndSource.cs
- Restrictions.cs
- ReservationNotFoundException.cs
- ScriptingAuthenticationServiceSection.cs
- ObjectStateEntry.cs
- OracleDateTime.cs