Vala.Scanner – vala Reference Manual
Packages
vala
Vala
Scanner
State
Conditional
source_file
get_identifier_or_keyword
matches
Scanner
comment
get_source_reference
in_regex_literal
in_template
in_template_part
in_verbatim_template
is_ident_char
parse_file_comments
parse_pp_and_expression
parse_pp_elif
parse_pp_else
parse_pp_endif
parse_pp_equality_expression
parse_pp_expression
parse_pp_if
parse_pp_or_expression
parse_pp_primary_expression
parse_pp_symbol
parse_pp_unary_expression
pop_comment
pp_directive
pp_eol
pp_space
pp_whitespace
push_comment
read_number
read_regex_token
read_template_token
read_token
seek
space
whitespace
_comment
_source_file
column
conditional_stack
current
end
line
previous
state_stack
Scanner
Object Hierarchy:
Vala.Scanner
Vala.Scanner
Vala.Scanner
Description:
public
class
Scanner
Lexical scanner for Vala source files.
Namespace:
Vala
Package:
vala
Content:
Structs:
Conditional
Enums:
State
Properties:
public
SourceFile
source_file
{
get
;
private
set
; }
Static methods:
public
static
TokenType
get_identifier_or_keyword
(
char
* begin,
int
len)
private
static
bool
matches
(
char
* begin,
string
keyword)
Creation methods:
public
Scanner
(
SourceFile
source_file)
Methods:
private
bool
comment
(
bool
file_comment =
false
)
private
SourceReference
get_source_reference
(
int
offset,
int
length =
0
)
private
inline
bool
in_regex_literal
()
private
inline
bool
in_template
()
private
inline
bool
in_template_part
()
private
inline
bool
in_verbatim_template
()
private
inline
bool
is_ident_char
(
char
c)
public
void
parse_file_comments
()
private
bool
parse_pp_and_expression
()
private
void
parse_pp_elif
()
private
void
parse_pp_else
()
private
void
parse_pp_endif
()
private
bool
parse_pp_equality_expression
()
private
bool
parse_pp_expression
()
private
void
parse_pp_if
()
private
bool
parse_pp_or_expression
()
private
bool
parse_pp_primary_expression
()
private
bool
parse_pp_symbol
()
private
bool
parse_pp_unary_expression
()
public
Comment
?
pop_comment
()
Clears and returns the content of the comment stack.
private
void
pp_directive
()
private
void
pp_eol
()
private
void
pp_space
()
private
bool
pp_whitespace
()
private
void
push_comment
(
string
comment_item,
SourceReference
source_reference,
bool
file_comment)
private
TokenType
read_number
()
public
TokenType
read_regex_token
(
out
SourceLocation
token_begin,
out
SourceLocation
token_end)
public
TokenType
read_template_token
(
out
SourceLocation
token_begin,
out
SourceLocation
token_end)
public
TokenType
read_token
(
out
SourceLocation
token_begin,
out
SourceLocation
token_end)
public
void
seek
(
SourceLocation
location)
private
void
space
()
private
bool
whitespace
()
Fields:
private
Comment
_comment
private
SourceFile
_source_file
private
int
column
private
Conditional
[]
conditional_stack
private
char
*
current
private
char
*
end
private
int
line
private
TokenType
previous
private
State
[]
state_stack