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
- GraphicsContainer.cs
- PropertyNames.cs
- XmlDataProvider.cs
- ContextConfiguration.cs
- GlyphShapingProperties.cs
- SafeArrayTypeMismatchException.cs
- MenuItemBinding.cs
- MailWebEventProvider.cs
- XamlBrushSerializer.cs
- TransformedBitmap.cs
- DynamicILGenerator.cs
- ObjectDataSourceStatusEventArgs.cs
- RequestedSignatureDialog.cs
- ObjectStateEntry.cs
- XhtmlConformanceSection.cs
- WebBrowsableAttribute.cs
- FixedTextSelectionProcessor.cs
- SafePipeHandle.cs
- ClientScriptManagerWrapper.cs
- PersonalizationDictionary.cs
- InteropBitmapSource.cs
- ColorConverter.cs
- RowVisual.cs
- FunctionImportMapping.cs
- Object.cs
- CustomBindingElement.cs
- processwaithandle.cs
- FacetValueContainer.cs
- APCustomTypeDescriptor.cs
- BaseDataListPage.cs
- CfgArc.cs
- HtmlInputCheckBox.cs
- GenericWebPart.cs
- OleStrCAMarshaler.cs
- CircleHotSpot.cs
- Focus.cs
- UriSection.cs
- NotFiniteNumberException.cs
- FreezableOperations.cs
- EpmCustomContentWriterNodeData.cs
- GridViewRowPresenterBase.cs
- ResXFileRef.cs
- ContextMenuAutomationPeer.cs
- COMException.cs
- BlobPersonalizationState.cs
- columnmapkeybuilder.cs
- DoubleAnimationUsingPath.cs
- CorrelationKeyCalculator.cs
- BooleanExpr.cs
- SecurityContext.cs
- SmiTypedGetterSetter.cs
- XmlnsCache.cs
- JsonXmlDataContract.cs
- Part.cs
- XmlSchemaSimpleContentExtension.cs
- OleDbDataReader.cs
- TransactionInformation.cs
- XmlTextEncoder.cs
- Converter.cs
- MetadataProperty.cs
- InfoCardRSACryptoProvider.cs
- SerialReceived.cs
- uribuilder.cs
- HistoryEventArgs.cs
- ModelChangedEventArgsImpl.cs
- Effect.cs
- WebPartAddingEventArgs.cs
- ConfigDefinitionUpdates.cs
- ListBoxItem.cs
- CreateCardRequest.cs
- TextOptions.cs
- PassportPrincipal.cs
- DataBoundLiteralControl.cs
- ObjectDataSourceMethodEditor.cs
- TypeListConverter.cs
- DesignerValidationSummaryAdapter.cs
- MimeTypeMapper.cs
- Compilation.cs
- VisualStyleRenderer.cs
- Label.cs
- BaseUriHelper.cs
- Facet.cs
- CharacterShapingProperties.cs
- ForeignConstraint.cs
- Thickness.cs
- FontUnit.cs
- GroupLabel.cs
- WorkerRequest.cs
- EncryptedType.cs
- WindowsListViewGroup.cs
- HScrollBar.cs
- UncommonField.cs
- GlobalId.cs
- SocketPermission.cs
- BinaryObjectWriter.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- XmlSchemaSimpleContentExtension.cs
- EventDescriptorCollection.cs
- StylusCollection.cs
- DateTimeFormatInfoScanner.cs