![]() |
Paradox Game Engine
v1.0.0 beta06
|
Public Member Functions | |
SourceStream (ScannerData scannerData, int tabWidth) | |
void | SetText (string text, int offset, bool keepLineNumbering) |
void | ResetPreviewPosition () |
bool | MatchSymbol (string symbol, bool ignoreCase) |
Tries to match the symbol with the text at current preview position. More... | |
Token | CreateToken (Terminal terminal) |
Creates a new token based on current preview position. More... | |
Token | CreateToken (Terminal terminal, object value) |
Creates a new token based on current preview position and sets its Value field. More... | |
Token | CreateErrorToken (string message, params object[] args) |
Creates error token with custom error message as its Value. More... | |
bool | EOF () |
override string | ToString () |
void | MoveLocationToPreviewPosition () |
Public Attributes | |
const int | DefaultTabWidth = 8 |
Properties | |
string | Text [get, set] |
SourceLocation | Location [get, set] |
int | PreviewPosition [get, set] |
int | TabWidth [get, set] |
char | PreviewChar [get] |
char | NextPreviewChar [get] |
![]() | |
string | Text [get] |
Returns the source text More... | |
SourceLocation | Location [get, set] |
Current start location (position, row, column) of the new token More... | |
int | PreviewPosition [get, set] |
Gets or sets the current preview position in the source file. Must be greater or equal to Location.Position More... | |
char | PreviewChar [get] |
Gets a char at preview position More... | |
char | NextPreviewChar [get] |
Gets the char at position next after the PrevewPosition More... | |
int | TabWidth [get, set] |
Definition at line 19 of file SourceStream.cs.
Irony.Parsing.SourceStream.SourceStream | ( | ScannerData | scannerData, |
int | tabWidth | ||
) |
Definition at line 24 of file SourceStream.cs.
Token Irony.Parsing.SourceStream.CreateErrorToken | ( | string | message, |
params object[] | args | ||
) |
Creates error token with custom error message as its Value.
message | Message template, can contain placeholder like {0} to be filled by values from args . |
args | A list of message arguments |
Implements Irony.Parsing.ISourceStream.
Definition at line 95 of file SourceStream.cs.
Creates a new token based on current preview position.
terminal | A terminal associated with the token. |
Implements Irony.Parsing.ISourceStream.
Definition at line 87 of file SourceStream.cs.
Creates a new token based on current preview position and sets its Value field.
terminal | A terminal associated with the token. |
value | The value associated with the token. |
Implements Irony.Parsing.ISourceStream.
Definition at line 91 of file SourceStream.cs.
bool Irony.Parsing.SourceStream.EOF | ( | ) |
Implements Irony.Parsing.ISourceStream.
Definition at line 103 of file SourceStream.cs.
Referenced by Irony.Parsing.DefaultScanner.NextToken(), and Irony.Parsing.DefaultScanner.VsReadToken().
bool Irony.Parsing.SourceStream.MatchSymbol | ( | string | symbol, |
bool | ignoreCase | ||
) |
Tries to match the symbol with the text at current preview position.
symbol | A symbol to match |
ignoreCase | True if char casing should be ignored. |
Implements Irony.Parsing.ISourceStream.
Definition at line 73 of file SourceStream.cs.
References Irony.Parsing.Text.
void Irony.Parsing.SourceStream.MoveLocationToPreviewPosition | ( | ) |
Definition at line 134 of file SourceStream.cs.
References Irony.Parsing.Text.
Referenced by Irony.Parsing.DefaultScanner.NextToken().
void Irony.Parsing.SourceStream.ResetPreviewPosition | ( | ) |
Definition at line 69 of file SourceStream.cs.
void Irony.Parsing.SourceStream.SetText | ( | string | text, |
int | offset, | ||
bool | keepLineNumbering | ||
) |
Definition at line 29 of file SourceStream.cs.
References Irony.Parsing.Text.
override string Irony.Parsing.SourceStream.ToString | ( | ) |
Definition at line 117 of file SourceStream.cs.
References Irony.Resources.LabelEofMark, Irony.Resources.LabelSrcHaveMore, Irony.Resources.MsgSrcPosToString, and Irony.Parsing.Text.
const int Irony.Parsing.SourceStream.DefaultTabWidth = 8 |
Definition at line 21 of file SourceStream.cs.
|
getset |
Definition at line 40 of file SourceStream.cs.
Referenced by Irony.Parsing.DefaultScanner.NextToken().
|
get |
Definition at line 61 of file SourceStream.cs.
|
get |
Definition at line 53 of file SourceStream.cs.
Referenced by Irony.Parsing.DefaultScanner.NextToken().
|
getset |
Definition at line 49 of file SourceStream.cs.
Referenced by Irony.Parsing.DefaultScanner.NextToken().
|
getset |
Definition at line 51 of file SourceStream.cs.
|
getset |
Definition at line 38 of file SourceStream.cs.