C# Class ShaderTools.Hlsl.Parser.HlslLexer

Inheritance: ILexer
Exibir arquivo Open project: tgjones/HlslTools Class Usage Examples

Private Properties

Property Type Description
AddTrivia void
CreateDisabledText SyntaxTrivia
ExpandNestedMacro List
FindParameterIndex int
LexDirectiveAndExcludedTrivia bool
LexDirectiveToken SyntaxToken
LexDirectiveTrailingTrivia void
LexDisabledText SyntaxNode
LexExcludedDirectivesAndTrivia void
LexSingleDirective SyntaxNode
LexSyntaxToken SyntaxToken
MakeAbsolute SourceRange
NextChar void
PopIncludeContext void
PushIncludeContext void
ReadBracketedString void
ReadDouble double
ReadEndOfLine void
ReadIdentifierOrKeyword void
ReadInt32OrInt64 object
ReadInt64 long
ReadInvalidCharacter void
ReadMultilineComment void
ReadNumber void
ReadOctalValue long
ReadPreprocessingNumber string
ReadSinglelineComment void
ReadString void
ReadToken void
ReadTrivia void
ReadWhitespace void
ReplaceParameters List
TryExpandMacro bool

Public Methods

Method Description
HlslLexer ( SourceText text, ParserOptions options = null, IIncludeFileSystem fileSystem = null ) : System
Lex ( LexerMode mode ) : SyntaxToken

Private Methods

Method Description
AddTrivia ( List target, SyntaxKind kind ) : void
CreateDisabledText ( ) : SyntaxTrivia
ExpandNestedMacro ( NestedMacroExpansionLexer lexer ) : List
FindParameterIndex ( SeparatedSyntaxList parameters, SyntaxToken token ) : int
LexDirectiveAndExcludedTrivia ( bool afterNonWhitespaceOnLine, List triviaList ) : bool
LexDirectiveToken ( ) : SyntaxToken
LexDirectiveTrailingTrivia ( List trivia, SyntaxKind kind, bool includeEndOfLine ) : void
LexDisabledText ( bool &followedByDirective ) : SyntaxNode
LexExcludedDirectivesAndTrivia ( bool endIsActive, List triviaList ) : void
LexSingleDirective ( bool isActive, bool endIsActive, bool afterNonWhitespaceOnLine, List triviaList ) : SyntaxNode
LexSyntaxToken ( ) : SyntaxToken
MakeAbsolute ( TextSpan span ) : SourceRange
NextChar ( ) : void
PopIncludeContext ( ) : void
PushIncludeContext ( SourceText text ) : void
ReadBracketedString ( ) : void
ReadDouble ( string text ) : double
ReadEndOfLine ( ) : void
ReadIdentifierOrKeyword ( ) : void
ReadInt32OrInt64 ( string text, bool hasHexModifier, bool hasOctalPrefix ) : object
ReadInt64 ( string text, bool hasHexModifier, bool hasOctalPrefix ) : long
ReadInvalidCharacter ( ) : void
ReadMultilineComment ( ) : void
ReadNumber ( ) : void
ReadOctalValue ( string octal ) : long
ReadPreprocessingNumber ( string text ) : string
ReadSinglelineComment ( ) : void
ReadString ( ) : void
ReadToken ( ) : void
ReadTrivia ( List target, bool isTrailing ) : void
ReadWhitespace ( ) : void
ReplaceParameters ( List originalArguments, List expandedArguments, FunctionLikeDefineDirectiveParameterListSyntax parameterList, List macroBody ) : List
TryExpandMacro ( SyntaxToken token, IMacroExpansionLexer lexer, List &expandedTokens ) : bool

Method Details

HlslLexer() public method

public HlslLexer ( SourceText text, ParserOptions options = null, IIncludeFileSystem fileSystem = null ) : System
text ShaderTools.Core.Text.SourceText
options ParserOptions
fileSystem IIncludeFileSystem
return System

Lex() public method

public Lex ( LexerMode mode ) : SyntaxToken
mode LexerMode
return SyntaxToken