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
- DBConcurrencyException.cs
 - EndOfStreamException.cs
 - KeyPullup.cs
 - CatalogZone.cs
 - FileResponseElement.cs
 - WorkflowInstanceProvider.cs
 - Funcletizer.cs
 - QilLiteral.cs
 - SecurityTokenException.cs
 - DefaultPrintController.cs
 - PropertyConverter.cs
 - SerializerWriterEventHandlers.cs
 - IChannel.cs
 - SafeArrayRankMismatchException.cs
 - AssemblyCache.cs
 - StylusDownEventArgs.cs
 - TreeViewItem.cs
 - SqlDuplicator.cs
 - PolicyValidationException.cs
 - ProgressBarRenderer.cs
 - XmlSchemaSimpleTypeRestriction.cs
 - SchemaMapping.cs
 - IntellisenseTextBox.designer.cs
 - WindowsClaimSet.cs
 - ReferentialConstraint.cs
 - ToolTipService.cs
 - Rule.cs
 - DataStorage.cs
 - ComponentDispatcherThread.cs
 - DnsEndPoint.cs
 - TimeSpanHelper.cs
 - Dynamic.cs
 - SoapSchemaMember.cs
 - ChannelCacheSettings.cs
 - GregorianCalendarHelper.cs
 - Setter.cs
 - ServicePoint.cs
 - XamlValidatingReader.cs
 - UncommonField.cs
 - HtmlElement.cs
 - Site.cs
 - CopyCodeAction.cs
 - InvalidComObjectException.cs
 - HtmlInputSubmit.cs
 - LambdaCompiler.Statements.cs
 - KeyPressEvent.cs
 - ToolboxComponentsCreatedEventArgs.cs
 - ListItemCollection.cs
 - ExpressionNode.cs
 - TextureBrush.cs
 - ClientScriptManagerWrapper.cs
 - EntityClassGenerator.cs
 - BasicExpressionVisitor.cs
 - FontStretch.cs
 - AdjustableArrowCap.cs
 - Math.cs
 - AssemblyHelper.cs
 - DataProviderNameConverter.cs
 - EdmTypeAttribute.cs
 - PenThreadPool.cs
 - ValidatorCollection.cs
 - PreviewPageInfo.cs
 - XmlUtf8RawTextWriter.cs
 - ServerValidateEventArgs.cs
 - PackageFilter.cs
 - PropertyNames.cs
 - KeyValuePair.cs
 - CodeAccessPermission.cs
 - DesignerTransaction.cs
 - DatagridviewDisplayedBandsData.cs
 - EntitySetBase.cs
 - Nodes.cs
 - StylusDownEventArgs.cs
 - XamlDebuggerXmlReader.cs
 - WebHttpBinding.cs
 - ImageMetadata.cs
 - SignatureToken.cs
 - AnnotationAdorner.cs
 - RegisteredHiddenField.cs
 - SafeEventHandle.cs
 - GuidelineSet.cs
 - SimpleWorkerRequest.cs
 - MimeTypeMapper.cs
 - ResolveRequestResponseAsyncResult.cs
 - DataGridViewAccessibleObject.cs
 - AuthenticationService.cs
 - MessageQueue.cs
 - TiffBitmapEncoder.cs
 - DataTableReader.cs
 - WebPartVerb.cs
 - Win32.cs
 - FamilyMapCollection.cs
 - Marshal.cs
 - shaper.cs
 - InputBinding.cs
 - WebReferencesBuildProvider.cs
 - JsonWriter.cs
 - TextRangeEditLists.cs
 - ResourceDisplayNameAttribute.cs
 - UserUseLicenseDictionaryLoader.cs