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
- LifetimeServices.cs
- XmlSubtreeReader.cs
- FamilyMapCollection.cs
- SimpleFieldTemplateUserControl.cs
- StatusBarDrawItemEvent.cs
- ResXResourceReader.cs
- FileDialogCustomPlacesCollection.cs
- DialogResultConverter.cs
- DataObjectFieldAttribute.cs
- RenderOptions.cs
- BaseTemplateCodeDomTreeGenerator.cs
- Frame.cs
- SystemInformation.cs
- DataGridViewRowCollection.cs
- CodeEventReferenceExpression.cs
- EventMappingSettingsCollection.cs
- RegexGroupCollection.cs
- ProgramNode.cs
- SQLDoubleStorage.cs
- SHA512Managed.cs
- DispatcherHookEventArgs.cs
- ActivityXRefConverter.cs
- Timer.cs
- WebPartEditorCancelVerb.cs
- ZipIOExtraFieldElement.cs
- GridSplitterAutomationPeer.cs
- TypeContext.cs
- DispatchWrapper.cs
- ContentPlaceHolderDesigner.cs
- ToolStripItemDesigner.cs
- SettingsAttributes.cs
- ADConnectionHelper.cs
- DateTimeFormatInfo.cs
- JavaScriptString.cs
- FileUtil.cs
- PcmConverter.cs
- PageBorderless.cs
- FromReply.cs
- SessionEndingEventArgs.cs
- Models.cs
- WinFormsSecurity.cs
- AdapterDictionary.cs
- KeyedHashAlgorithm.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- NameValueSectionHandler.cs
- SystemUdpStatistics.cs
- KoreanLunisolarCalendar.cs
- SystemDiagnosticsSection.cs
- PingOptions.cs
- ClipboardProcessor.cs
- DownloadProgressEventArgs.cs
- HorizontalAlignConverter.cs
- DynamicActivityXamlReader.cs
- StatusBarDrawItemEvent.cs
- SqlExpressionNullability.cs
- NonDualMessageSecurityOverHttp.cs
- SqlRowUpdatingEvent.cs
- KeyGestureConverter.cs
- EnumValAlphaComparer.cs
- GenericIdentity.cs
- ExcludePathInfo.cs
- Type.cs
- odbcmetadatacolumnnames.cs
- DispatcherOperation.cs
- ResourceType.cs
- DataServiceRequestArgs.cs
- CodeIdentifiers.cs
- FileDataSourceCache.cs
- Identity.cs
- WebPartTransformerCollection.cs
- DisableDpiAwarenessAttribute.cs
- MemberMaps.cs
- Itemizer.cs
- PerformanceCounterPermissionEntryCollection.cs
- Application.cs
- QilLiteral.cs
- Freezable.cs
- Repeater.cs
- ConnectionManager.cs
- BaseAppDomainProtocolHandler.cs
- PagedDataSource.cs
- TreeNode.cs
- TimeZone.cs
- SrgsElementFactoryCompiler.cs
- entityreference_tresulttype.cs
- IndicCharClassifier.cs
- LineServicesCallbacks.cs
- WebConfigurationManager.cs
- SchemaCollectionPreprocessor.cs
- DrawToolTipEventArgs.cs
- contentDescriptor.cs
- ProfilePropertySettingsCollection.cs
- Localizer.cs
- ColumnMap.cs
- MetabaseServerConfig.cs
- BridgeDataRecord.cs
- WebRequestModulesSection.cs
- RenameRuleObjectDialog.Designer.cs
- Visual3D.cs
- XPathDocumentBuilder.cs