C# Class Irony.Compiler.Grammar

Afficher le fichier Open project: Zepheus/Fiesta_Utils Class Usage Examples

Méthodes publiques

Свойство Type Description
CaseSensitive bool
Dedent Terminal
DefaultNodeType System.Type
Delimiters string
Empty Terminal
Eof Terminal
Eos Terminal
FallbackTerminals TerminalList
Indent Terminal
LineTerminators string
NewLine Terminal
NonGrammarTerminals TerminalList
SyntaxError Terminal
TokenFilters TokenFilterList
WhitespaceChars string

Méthodes publiques

Méthode Description
CreateNode ( Irony.Compiler.CompilerContext context, ActionRecord reduceAction, SourceSpan sourceSpan, AstNodeList childNodes ) : AstNode
CreateSyntaxErrorToken ( Irony.Compiler.CompilerContext context, SourceLocation location, string message ) : Token
GetSyntaxErrorMessage ( Irony.Compiler.CompilerContext context, StringList expectedList ) : string
MakePlusRule ( NonTerminal listNonTerminal, BnfTerm delimiter, BnfTerm listMember ) : BnfExpression
MakeStarRule ( NonTerminal listNonTerminal, BnfTerm delimiter, BnfTerm listMember ) : BnfExpression
OnActionConflict ( Irony.Compiler.Parser parser, Token input, ActionRecord action ) : ActionRecord
OnActionSelected ( Irony.Compiler.Parser parser, Token input, ActionRecord action ) : void
RegisterBracePair ( string openBrace, string closeBrace ) : void
RegisterOperators ( int precedence ) : void
RegisterOperators ( int precedence, Associativity associativity ) : void
RegisterPunctuation ( ) : void
TryMatch ( Irony.Compiler.CompilerContext context, ISourceStream source ) : Token

Méthodes protégées

Méthode Description
Symbol ( string symbol ) : SymbolTerminal
Symbol ( string symbol, string name ) : SymbolTerminal
ToElement ( BnfExpression expression ) : BnfTerm
WithPlus ( BnfExpression expression ) : BnfTerm
WithQ ( BnfExpression expression ) : BnfTerm
WithStar ( BnfExpression expression ) : BnfTerm

Method Details

CreateNode() public méthode

public CreateNode ( Irony.Compiler.CompilerContext context, ActionRecord reduceAction, SourceSpan sourceSpan, AstNodeList childNodes ) : AstNode
context Irony.Compiler.CompilerContext
reduceAction ActionRecord
sourceSpan SourceSpan
childNodes AstNodeList
Résultat AstNode

CreateSyntaxErrorToken() public static méthode

public static CreateSyntaxErrorToken ( Irony.Compiler.CompilerContext context, SourceLocation location, string message ) : Token
context Irony.Compiler.CompilerContext
location SourceLocation
message string
Résultat Token

GetSyntaxErrorMessage() public méthode

public GetSyntaxErrorMessage ( Irony.Compiler.CompilerContext context, StringList expectedList ) : string
context Irony.Compiler.CompilerContext
expectedList StringList
Résultat string

MakePlusRule() public méthode

public MakePlusRule ( NonTerminal listNonTerminal, BnfTerm delimiter, BnfTerm listMember ) : BnfExpression
listNonTerminal NonTerminal
delimiter BnfTerm
listMember BnfTerm
Résultat BnfExpression

MakeStarRule() public méthode

public MakeStarRule ( NonTerminal listNonTerminal, BnfTerm delimiter, BnfTerm listMember ) : BnfExpression
listNonTerminal NonTerminal
delimiter BnfTerm
listMember BnfTerm
Résultat BnfExpression

OnActionConflict() public méthode

public OnActionConflict ( Irony.Compiler.Parser parser, Token input, ActionRecord action ) : ActionRecord
parser Irony.Compiler.Parser
input Token
action ActionRecord
Résultat ActionRecord

OnActionSelected() public méthode

public OnActionSelected ( Irony.Compiler.Parser parser, Token input, ActionRecord action ) : void
parser Irony.Compiler.Parser
input Token
action ActionRecord
Résultat void

RegisterBracePair() public méthode

public RegisterBracePair ( string openBrace, string closeBrace ) : void
openBrace string
closeBrace string
Résultat void

RegisterOperators() public méthode

public RegisterOperators ( int precedence ) : void
precedence int
Résultat void

RegisterOperators() public méthode

public RegisterOperators ( int precedence, Associativity associativity ) : void
precedence int
associativity Associativity
Résultat void

RegisterPunctuation() public méthode

public RegisterPunctuation ( ) : void
Résultat void

Symbol() protected static méthode

protected static Symbol ( string symbol ) : SymbolTerminal
symbol string
Résultat SymbolTerminal

Symbol() protected static méthode

protected static Symbol ( string symbol, string name ) : SymbolTerminal
symbol string
name string
Résultat SymbolTerminal

ToElement() protected static méthode

protected static ToElement ( BnfExpression expression ) : BnfTerm
expression BnfExpression
Résultat BnfTerm

TryMatch() public méthode

public TryMatch ( Irony.Compiler.CompilerContext context, ISourceStream source ) : Token
context Irony.Compiler.CompilerContext
source ISourceStream
Résultat Token

WithPlus() protected static méthode

protected static WithPlus ( BnfExpression expression ) : BnfTerm
expression BnfExpression
Résultat BnfTerm

WithQ() protected static méthode

protected static WithQ ( BnfExpression expression ) : BnfTerm
expression BnfExpression
Résultat BnfTerm

WithStar() protected static méthode

protected static WithStar ( BnfExpression expression ) : BnfTerm
expression BnfExpression
Résultat BnfTerm

Property Details

CaseSensitive public_oe property

public bool CaseSensitive
Résultat bool

Dedent public_oe static_oe property

public static Terminal Dedent
Résultat Terminal

DefaultNodeType public_oe property

public Type,System DefaultNodeType
Résultat System.Type

Delimiters public_oe property

public string Delimiters
Résultat string

Empty public_oe static_oe property

public static Terminal Empty
Résultat Terminal

Eof public_oe static_oe property

public static Terminal Eof
Résultat Terminal

Eos public_oe static_oe property

public static Terminal Eos
Résultat Terminal

FallbackTerminals public_oe property

public TerminalList FallbackTerminals
Résultat TerminalList

Indent public_oe static_oe property

public static Terminal Indent
Résultat Terminal

LineTerminators public_oe property

public string LineTerminators
Résultat string

NewLine public_oe static_oe property

public static Terminal NewLine
Résultat Terminal

NonGrammarTerminals public_oe property

public TerminalList NonGrammarTerminals
Résultat TerminalList

SyntaxError public_oe static_oe property

public static Terminal SyntaxError
Résultat Terminal

TokenFilters public_oe property

public TokenFilterList TokenFilters
Résultat TokenFilterList

WhitespaceChars public_oe property

public string WhitespaceChars
Résultat string