Share via


TokenizerBackedParser<TTokenizer, TSymbol, TSymbolType> Class

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Represents a tokenizer backed parser.

Inheritance Hierarchy

System.Object
  System.Web.Razor.Parser.ParserBase
    System.Web.Razor.Parser.TokenizerBackedParser<TTokenizer, TSymbol, TSymbolType>
      System.Web.Razor.Parser.CSharpCodeParser
      System.Web.Razor.Parser.HtmlMarkupParser
      System.Web.Razor.Parser.VBCodeParser

Namespace:  System.Web.Razor.Parser
Assembly:  System.Web.Razor (in System.Web.Razor.dll)

Syntax

'Declaration
Public MustInherit Class TokenizerBackedParser(Of TTokenizer As Tokenizer(Of TSymbol, TSymbolType), TSymbol As SymbolBase(Of TSymbolType), TSymbolType) _
    Inherits ParserBase
'Usage
Dim instance As TokenizerBackedParser(Of TTokenizer, TSymbol, TSymbolType)
public abstract class TokenizerBackedParser<TTokenizer, TSymbol, TSymbolType> : ParserBase 
where TTokenizer : Tokenizer<TSymbol, TSymbolType>
where TSymbol : SymbolBase<TSymbolType>
generic<typename TTokenizer, typename TSymbol, typename TSymbolType>
where TTokenizer : Tokenizer<TSymbol, TSymbolType>
where TSymbol : SymbolBase<TSymbolType>
public ref class TokenizerBackedParser abstract : public ParserBase
[<AbstractClassAttribute>]
type TokenizerBackedParser<'TTokenizer, 'TSymbol, 'TSymbolType when 'TTokenizer : Tokenizer<'TSymbol, 'TSymbolType> when 'TSymbol : SymbolBase<'TSymbolType>> =  
    class 
        inherit ParserBase 
    end
JScript does not support generic types and methods.

Type Parameters

  • TTokenizer
    The type of tokenizer.
  • TSymbol
    The type of symbol.
  • TSymbolType
    The type of SymbolType.

The TokenizerBackedParser<TTokenizer, TSymbol, TSymbolType> type exposes the following members.

Constructors

  Name Description
Protected method TokenizerBackedParser<TTokenizer, TSymbol, TSymbolType> This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Initializes a new instance of the TokenizerBackedParser<TTokenizer, TSymbol, TSymbolType> class.

Top

Properties

  Name Description
Public property Context This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets or sets the ParserContext. (Inherited from ParserBase.)
Protected property CurrentLocation This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets the current location of the current instance.
Protected property CurrentSymbol This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets the current symbol of this instance.
Protected property EndOfFile This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets a value indicating whether the tokenizer is in the end of file.
Public property IsMarkupParser This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets a value that indicates whether the parser is a markup parser. (Inherited from ParserBase.)
Protected property Language This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets the language used for parsing.
Protected property OtherParser This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets the other parser ParserBase. (Inherited from ParserBase.)
Protected property PreviousSymbol This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code..Gets the previous symbol of this instance.
Protected property Span This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets or sets the SpanBuilder associated with this instance.
Protected property SpanConfig This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets or sets the span configuration.
Protected property Tokenizer This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets the tokenizer.

Top

Methods

  Name Description
Protected method Accept(IEnumerable<TSymbol>) This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Accepts the list of symbols
Protected method Accept(TSymbol) This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Accepts the specified symbol.
Protected method AcceptAll This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Determines whether the parser accepts all types of tokenizer.
Protected method AcceptAndMoveNext This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Determines whether the parser accepts and moves to the next tokenizer.
Protected method AcceptSingleWhiteSpaceCharacter This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Determines whether the parser accepts single whitespace character.
Protected method AcceptUntil(TSymbolType) This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Accepts token until a token of the given type is found.
Protected method AcceptUntil(TSymbolType[]) This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Accepts token until a token of the given types is found.
Protected method AcceptUntil(TSymbolType, TSymbolType) This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Accepts token until a token of the given type is found and it will backup so that the next token is of the given type.
Protected method AcceptUntil(TSymbolType, TSymbolType, TSymbolType) This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Accepts the given tokens until a token of the given type is found.
Protected method AcceptWhile(Func<TSymbol, Boolean>) Accepts token while the condition has been reached.
Protected method AcceptWhile(TSymbolType) This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Accepts the token while a token of the given type is not found.
Protected method AcceptWhile(TSymbolType[]) This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Accepts token while the token of the given types has been reached.
Protected method AcceptWhile(TSymbolType, TSymbolType) This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Accepts token while the token of the given type has been reached.
Protected method AcceptWhile(TSymbolType, TSymbolType, TSymbolType) This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Accepts token while the token of the given type has been reached.
Protected method AcceptWhiteSpaceInLines This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Determines whether the parser accepts whitespace in lines.
Protected method AddMarkerSymbolIfNecessary() This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Adds a marker symbol if necessary.
Protected method AddMarkerSymbolIfNecessary(SourceLocation) This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Adds a marker symbol if necessary.
Protected method At This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Determines whether the token is at the specified type.
Protected method AtIdentifier This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Determines whether the token is at the specified identifier.
Protected method Balance(BalancingModes) This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Determines whether the parsing is balance.
Protected method Balance(BalancingModes, TSymbolType, TSymbolType, SourceLocation) This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Determines whether the parsing is balance.
Public method BuildSpan This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Builds a specified span. (Overrides ParserBase.BuildSpan(SpanBuilder, SourceLocation, String).)
Protected method ConfigureSpan(Action<SpanBuilder>) This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Configures the span.
Protected method ConfigureSpan(Action<SpanBuilder, Action<SpanBuilder>>) Configures the span.
Protected method EnsureCurrent This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Determines whether to ensure the current parser.
Public method Equals (Inherited from Object.)
Protected method Expected(TSymbolType[]) This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Indicates the expected token with the given types.
Protected method Expected(KnownSymbolType) This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Indicates the expected token with the given type.
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method HandleEmbeddedTransition This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Handles the embedded transition.
Protected method Initialize This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Initializes a specified span.
Protected method IsAtEmbeddedTransition This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Determines whether this instance is at embedded transition.
Protected method MemberwiseClone (Inherited from Object.)
Protected method NextIs(Func<TSymbol, Boolean>) Determines whether the token with the given condition would pass.
Protected method NextIs(TSymbolType) This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Determines whether the token with the given type would pass.
Protected method NextIs(TSymbolType[]) This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Determines whether the token with the given types would pass.
Protected method NextToken This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Determines whether the parser advances to the next token.
Protected method Optional(TSymbolType) This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Determines whether parsing a token with the given type is optional.
Protected method Optional(KnownSymbolType) This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Determines whether parsing a token with the given type is optional.
Protected method Output(AcceptedCharacters) This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Outputs a token with accepted characters.
Protected method Output(SpanKind) This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Outputs a token with span kind.
Protected method Output(SpanKind, AcceptedCharacters) This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Outputs a token with a given span kind and accepted characters.
Protected method OutputSpanBeforeRazorComment This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Outputs a span before the razor comment.
Public method ParseBlock This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Blocks the parser. (Inherited from ParserBase.)
Public method ParseDocument This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Creates documentation for the parse. (Inherited from ParserBase.)
Public method ParseSection Parses the section in ordered list of the elements. (Inherited from ParserBase.)
Protected method PushSpanConfig() This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Pushes the span configuration.
Protected method PushSpanConfig(Action<SpanBuilder>) This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Pushes the span configuration.
Protected method PushSpanConfig(Action<SpanBuilder, Action<SpanBuilder>>) Pushes the span configuration.
Protected method PutBack(IEnumerable<TSymbol>) This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Puts the transition back.
Protected method PutBack(TSymbol) This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Puts the transition back.
Protected method PutCurrentBack This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Puts the current transition back.
Protected method RazorComment This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Displays the razor comment.
Protected method ReadWhile Reads a token while the condition is not reached.
Protected method Required This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Determines whether the expected token is required.
Public method ToString (Inherited from Object.)
Protected method Was This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Determines whether the token with the given type was parsed.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

System.Web.Razor.Parser Namespace