Vala.Genie.Scanner – vala Reference Manual
Packages
vala
Vala
Genie
Scanner
State
Conditional
indent_spaces
source_file
get_identifier_or_keyword
matches
Scanner
comment
count_tabs
get_source_reference
in_regex_literal
in_template
in_template_part
in_verbatim_template
is_ident_char
newline
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_regex_token
read_template_token
read_token
seek
skip_newlines
skip_space_tabs
skip_tabs
space
whitespace
_comment
_indent_spaces
_source_file
begin
column
conditional_stack
current
current_indent_level
end
indent_level
last_token
line
open_brace_count
open_parens_count
parse_started
pending_dedents
state_stack
Scanner
Object Hierarchy:
Vala.Genie.Scanner
Vala.Genie.Scanner
Vala.Genie.Scanner
Description:
public
class
Scanner
Lexical scanner for Genie source files.
Namespace:
Vala.Genie
Package:
vala
Content:
Structs:
Conditional
Enums:
State
Properties:
public
int
indent_spaces
{
get
;
set
; }
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
int
count_tabs
()
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)
private
inline
bool
newline
()
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)
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
bool
skip_newlines
()
private
void
skip_space_tabs
()
private
bool
skip_tabs
()
private
void
space
()
private
bool
whitespace
()
Fields:
private
Comment
_comment
private
int
_indent_spaces
private
SourceFile
_source_file
private
char
*
begin
private
int
column
private
Conditional
[]
conditional_stack
private
char
*
current
private
int
current_indent_level
private
char
*
end
private
int
indent_level
private
TokenType
last_token
private
int
line
private
int
open_brace_count
private
int
open_parens_count
private
bool
parse_started
private
int
pending_dedents
private
State
[]
state_stack