GrLexeme

Describe the smallest element found in a source _file.

Constructors

this
this(GrLexer _lexer)

Default.

Members

Functions

getFile
string getFile()
Undocumented in source. Be warned that the author may not have intended to support it.
getLine
string getLine()

Returns the entire _line from where the token is located.

Properties

column
uint column [@property getter]

Column position

fileId
uint fileId [@property getter]

File id

line
uint line [@property getter]

Line position

textLength
uint textLength [@property getter]

Text length

Variables

bvalue
bool bvalue;

boolean value of the constant. isLiteral will be true and type set to boolean.

fvalue
GrFloat fvalue;

Floating point value of the constant. isLiteral will be true and type set to float_.

isKeyword
bool isKeyword;

is this a reserved grimoire word ?

isLiteral
bool isLiteral;

Whether the lexeme is a constant value.

isOperator
bool isOperator;

Whether the lexeme is an operator.

isType
bool isType;

Only describe first class type such as int, string or func. Structure or other custom type are not.

ivalue
GrInt ivalue;

Integral value of the constant. isLiteral will be true and type set to integer.

svalue
GrString svalue;

Can either describe a literal value like "myString" or an identifier.

type
GrLexemeType type;

Kind of token.

Meta