Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
Irony.Parsing.ParsingContext Class Reference

Public Member Functions

 ParsingContext (Parser parser)
 
bool OptionIsSet (ParseOptions option)
 
void SetOption (ParseOptions option, bool value)
 
void AddParserError (string message, params object[] args)
 
void AddParserMessage (ParserErrorLevel level, SourceLocation location, string message, params object[] args)
 
void AddTrace (string message, params object[] args)
 
void SetSourceLocation (SourceLocation location)
 
StringSet GetExpectedTermSet ()
 

Public Attributes

readonly Parser Parser
 
readonly LanguageData Language
 
ParseOptions Options
 
ParseMode Mode = ParseMode.File
 
int MaxErrors = 20
 
CultureInfo Culture
 
readonly ParserStack ParserStack = new ParserStack()
 
readonly TokenStack OpenBraces = new TokenStack()
 
ParserTrace ParserTrace = new ParserTrace()
 
TerminalList CurrentTerminals = new TerminalList()
 
Token CurrentToken
 
Token PreviousToken
 
SourceLocation PreviousLineStart
 
VsScannerStateMap VsLineScanState
 
bool HasErrors
 
readonly Dictionary< string,
object > 
Values = new Dictionary<string, object>()
 

Properties

ParserState CurrentParserState [get, set]
 
ParseTreeNode CurrentParserInput [get, set]
 
ParseTree CurrentParseTree [get, set]
 
ParserStatus Status [get, set]
 
int TabWidth [get, set]
 

Events

EventHandler< ParsingEventArgsTokenCreated
 

Detailed Description

Definition at line 47 of file ParsingContext.cs.

Constructor & Destructor Documentation

Irony.Parsing.ParsingContext.ParsingContext ( Parser  parser)

Definition at line 101 of file ParsingContext.cs.

Member Function Documentation

void Irony.Parsing.ParsingContext.AddParserError ( string  message,
params object[]  args 
)

Definition at line 139 of file ParsingContext.cs.

void Irony.Parsing.ParsingContext.AddParserMessage ( ParserErrorLevel  level,
SourceLocation  location,
string  message,
params object[]  args 
)

Definition at line 144 of file ParsingContext.cs.

References Irony.Parsing.ParserStack.Top.

void Irony.Parsing.ParsingContext.AddTrace ( string  message,
params object[]  args 
)

Definition at line 154 of file ParsingContext.cs.

References Irony.Parsing.ParserStack.Top.

StringSet Irony.Parsing.ParsingContext.GetExpectedTermSet ( )

Definition at line 189 of file ParsingContext.cs.

bool Irony.Parsing.ParsingContext.OptionIsSet ( ParseOptions  option)

Definition at line 127 of file ParsingContext.cs.

void Irony.Parsing.ParsingContext.SetOption ( ParseOptions  option,
bool  value 
)

Definition at line 130 of file ParsingContext.cs.

void Irony.Parsing.ParsingContext.SetSourceLocation ( SourceLocation  location)

Definition at line 182 of file ParsingContext.cs.

Member Data Documentation

CultureInfo Irony.Parsing.ParsingContext.Culture

Definition at line 55 of file ParsingContext.cs.

Referenced by Irony.Parsing.DataLiteralBase.ConvertValue().

TerminalList Irony.Parsing.ParsingContext.CurrentTerminals = new TerminalList()

Definition at line 69 of file ParsingContext.cs.

Token Irony.Parsing.ParsingContext.CurrentToken
bool Irony.Parsing.ParsingContext.HasErrors

Definition at line 82 of file ParsingContext.cs.

readonly LanguageData Irony.Parsing.ParsingContext.Language

Definition at line 49 of file ParsingContext.cs.

Referenced by Irony.Parsing.TokenPreviewHint.Match().

int Irony.Parsing.ParsingContext.MaxErrors = 20

Definition at line 54 of file ParsingContext.cs.

ParseMode Irony.Parsing.ParsingContext.Mode = ParseMode.File

Definition at line 53 of file ParsingContext.cs.

Referenced by Irony.Parsing.CommentTerminal.TryMatch().

readonly TokenStack Irony.Parsing.ParsingContext.OpenBraces = new TokenStack()

Definition at line 65 of file ParsingContext.cs.

Referenced by Irony.Parsing.Grammar.ReportParseError().

ParseOptions Irony.Parsing.ParsingContext.Options

Definition at line 52 of file ParsingContext.cs.

readonly Parser Irony.Parsing.ParsingContext.Parser

Definition at line 48 of file ParsingContext.cs.

readonly ParserStack Irony.Parsing.ParsingContext.ParserStack = new ParserStack()

Definition at line 61 of file ParsingContext.cs.

ParserTrace Irony.Parsing.ParsingContext.ParserTrace = new ParserTrace()

Definition at line 66 of file ParsingContext.cs.

SourceLocation Irony.Parsing.ParsingContext.PreviousLineStart

Definition at line 72 of file ParsingContext.cs.

Token Irony.Parsing.ParsingContext.PreviousToken

Definition at line 71 of file ParsingContext.cs.

readonly Dictionary<string, object> Irony.Parsing.ParsingContext.Values = new Dictionary<string, object>()

Definition at line 85 of file ParsingContext.cs.

VsScannerStateMap Irony.Parsing.ParsingContext.VsLineScanState

Property Documentation

ParseTreeNode Irony.Parsing.ParsingContext.CurrentParserInput
getset
ParserState Irony.Parsing.ParsingContext.CurrentParserState
getset

Definition at line 59 of file ParsingContext.cs.

ParseTree Irony.Parsing.ParsingContext.CurrentParseTree
getset

Definition at line 64 of file ParsingContext.cs.

ParserStatus Irony.Parsing.ParsingContext.Status
getset

Definition at line 81 of file ParsingContext.cs.

int Irony.Parsing.ParsingContext.TabWidth
getset

Definition at line 88 of file ParsingContext.cs.

Event Documentation

EventHandler<ParsingEventArgs> Irony.Parsing.ParsingContext.TokenCreated

Definition at line 118 of file ParsingContext.cs.


The documentation for this class was generated from the following file: