redef class Token
readable writable var _text: String
- readable var _filename: String
- readable var _line: Int
- readable var _pos: Int
fun parser_index: Int is abstract
return 0
end
- init init_tk(text: String, fname: String, line: Int, pos: Int)
+ init init_tk(text: String, loc: Location)
do
_text = text
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 1
end
- init init_tk(text: String, fname: String, line: Int, pos: Int)
+ init init_tk(text: String, loc: Location)
do
_text = text
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 2
end
- init init_tk(fname: String, line: Int, pos: Int)
+ init init_tk(loc: Location)
do
_text = once "package"
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 3
end
- init init_tk(fname: String, line: Int, pos: Int)
+ init init_tk(loc: Location)
do
_text = once "import"
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 4
end
- init init_tk(fname: String, line: Int, pos: Int)
+ init init_tk(loc: Location)
do
_text = once "class"
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 5
end
- init init_tk(fname: String, line: Int, pos: Int)
+ init init_tk(loc: Location)
do
_text = once "abstract"
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 6
end
- init init_tk(fname: String, line: Int, pos: Int)
+ init init_tk(loc: Location)
do
_text = once "interface"
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 7
end
- init init_tk(fname: String, line: Int, pos: Int)
+ init init_tk(loc: Location)
do
_text = once "universal"
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 8
end
- init init_tk(fname: String, line: Int, pos: Int)
+ init init_tk(loc: Location)
do
_text = once "special"
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 9
end
- init init_tk(fname: String, line: Int, pos: Int)
+ init init_tk(loc: Location)
do
_text = once "end"
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 10
end
- init init_tk(text: String, fname: String, line: Int, pos: Int)
+ init init_tk(text: String, loc: Location)
do
_text = text
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 11
end
- init init_tk(fname: String, line: Int, pos: Int)
+ init init_tk(loc: Location)
do
_text = once "type"
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 12
end
- init init_tk(fname: String, line: Int, pos: Int)
+ init init_tk(loc: Location)
do
_text = once "attr"
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 13
end
- init init_tk(fname: String, line: Int, pos: Int)
+ init init_tk(loc: Location)
do
_text = once "init"
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 14
end
- init init_tk(fname: String, line: Int, pos: Int)
+ init init_tk(loc: Location)
do
_text = once "redef"
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 15
end
- init init_tk(fname: String, line: Int, pos: Int)
+ init init_tk(loc: Location)
do
_text = once "is"
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 16
end
- init init_tk(fname: String, line: Int, pos: Int)
+ init init_tk(loc: Location)
do
_text = once "do"
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 17
end
- init init_tk(fname: String, line: Int, pos: Int)
+ init init_tk(loc: Location)
do
_text = once "readable"
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 18
end
- init init_tk(fname: String, line: Int, pos: Int)
+ init init_tk(loc: Location)
do
_text = once "writable"
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 19
end
- init init_tk(fname: String, line: Int, pos: Int)
+ init init_tk(loc: Location)
do
_text = once "var"
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 20
end
- init init_tk(fname: String, line: Int, pos: Int)
+ init init_tk(loc: Location)
do
_text = once "intern"
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 21
end
- init init_tk(fname: String, line: Int, pos: Int)
+ init init_tk(loc: Location)
do
_text = once "extern"
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 22
end
- init init_tk(fname: String, line: Int, pos: Int)
+ init init_tk(loc: Location)
do
_text = once "protected"
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 23
end
- init init_tk(fname: String, line: Int, pos: Int)
+ init init_tk(loc: Location)
do
_text = once "private"
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 24
end
- init init_tk(fname: String, line: Int, pos: Int)
+ init init_tk(loc: Location)
do
_text = once "intrude"
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 25
end
- init init_tk(fname: String, line: Int, pos: Int)
+ init init_tk(loc: Location)
do
_text = once "if"
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 26
end
- init init_tk(fname: String, line: Int, pos: Int)
+ init init_tk(loc: Location)
do
_text = once "then"
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 27
end
- init init_tk(fname: String, line: Int, pos: Int)
+ init init_tk(loc: Location)
do
_text = once "else"
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 28
end
- init init_tk(fname: String, line: Int, pos: Int)
+ init init_tk(loc: Location)
do
_text = once "while"
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 29
end
- init init_tk(fname: String, line: Int, pos: Int)
+ init init_tk(loc: Location)
do
_text = once "for"
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 30
end
- init init_tk(fname: String, line: Int, pos: Int)
+ init init_tk(loc: Location)
do
_text = once "in"
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 31
end
- init init_tk(fname: String, line: Int, pos: Int)
+ init init_tk(loc: Location)
do
_text = once "and"
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 32
end
- init init_tk(fname: String, line: Int, pos: Int)
+ init init_tk(loc: Location)
do
_text = once "or"
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 33
end
- init init_tk(fname: String, line: Int, pos: Int)
+ init init_tk(loc: Location)
do
_text = once "not"
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 34
end
- init init_tk(fname: String, line: Int, pos: Int)
+ init init_tk(loc: Location)
do
_text = once "return"
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 35
end
- init init_tk(fname: String, line: Int, pos: Int)
+ init init_tk(loc: Location)
do
_text = once "continue"
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 36
end
- init init_tk(fname: String, line: Int, pos: Int)
+ init init_tk(loc: Location)
do
_text = once "break"
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 37
end
- init init_tk(fname: String, line: Int, pos: Int)
+ init init_tk(loc: Location)
do
_text = once "abort"
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 38
end
- init init_tk(fname: String, line: Int, pos: Int)
+ init init_tk(loc: Location)
do
_text = once "assert"
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 39
end
- init init_tk(fname: String, line: Int, pos: Int)
+ init init_tk(loc: Location)
do
_text = once "new"
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 40
end
- init init_tk(fname: String, line: Int, pos: Int)
+ init init_tk(loc: Location)
do
_text = once "isa"
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 41
end
- init init_tk(fname: String, line: Int, pos: Int)
+ init init_tk(loc: Location)
do
_text = once "once"
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 42
end
- init init_tk(fname: String, line: Int, pos: Int)
+ init init_tk(loc: Location)
do
_text = once "super"
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 43
end
- init init_tk(fname: String, line: Int, pos: Int)
+ init init_tk(loc: Location)
do
_text = once "self"
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 44
end
- init init_tk(fname: String, line: Int, pos: Int)
+ init init_tk(loc: Location)
do
_text = once "true"
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 45
end
- init init_tk(fname: String, line: Int, pos: Int)
+ init init_tk(loc: Location)
do
_text = once "false"
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 46
end
- init init_tk(fname: String, line: Int, pos: Int)
+ init init_tk(loc: Location)
do
_text = once "null"
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 47
end
- init init_tk(fname: String, line: Int, pos: Int)
+ init init_tk(loc: Location)
do
_text = once "as"
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 48
end
- init init_tk(fname: String, line: Int, pos: Int)
+ init init_tk(loc: Location)
do
_text = once "with"
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 49
end
- init init_tk(fname: String, line: Int, pos: Int)
+ init init_tk(loc: Location)
do
_text = once "nullable"
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 50
end
- init init_tk(fname: String, line: Int, pos: Int)
+ init init_tk(loc: Location)
do
_text = once "isset"
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 51
end
- init init_tk(fname: String, line: Int, pos: Int)
+ init init_tk(loc: Location)
do
_text = once "("
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 52
end
- init init_tk(fname: String, line: Int, pos: Int)
+ init init_tk(loc: Location)
do
_text = once ")"
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 53
end
- init init_tk(fname: String, line: Int, pos: Int)
+ init init_tk(loc: Location)
do
_text = once "["
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 54
end
- init init_tk(fname: String, line: Int, pos: Int)
+ init init_tk(loc: Location)
do
_text = once "]"
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 55
end
- init init_tk(fname: String, line: Int, pos: Int)
+ init init_tk(loc: Location)
do
_text = once ","
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 56
end
- init init_tk(fname: String, line: Int, pos: Int)
+ init init_tk(loc: Location)
do
_text = once ":"
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 57
end
- init init_tk(fname: String, line: Int, pos: Int)
+ init init_tk(loc: Location)
do
_text = once "::"
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 58
end
- init init_tk(fname: String, line: Int, pos: Int)
+ init init_tk(loc: Location)
do
_text = once "="
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 59
end
- init init_tk(fname: String, line: Int, pos: Int)
+ init init_tk(loc: Location)
do
_text = once "+="
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 60
end
- init init_tk(fname: String, line: Int, pos: Int)
+ init init_tk(loc: Location)
do
_text = once "-="
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 61
end
- init init_tk(fname: String, line: Int, pos: Int)
+ init init_tk(loc: Location)
do
_text = once "..."
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 62
end
- init init_tk(fname: String, line: Int, pos: Int)
+ init init_tk(loc: Location)
do
_text = once ".."
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 63
end
- init init_tk(fname: String, line: Int, pos: Int)
+ init init_tk(loc: Location)
do
_text = once "."
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 64
end
- init init_tk(fname: String, line: Int, pos: Int)
+ init init_tk(loc: Location)
do
_text = once "+"
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 65
end
- init init_tk(fname: String, line: Int, pos: Int)
+ init init_tk(loc: Location)
do
_text = once "-"
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 66
end
- init init_tk(fname: String, line: Int, pos: Int)
+ init init_tk(loc: Location)
do
_text = once "*"
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 67
end
- init init_tk(fname: String, line: Int, pos: Int)
+ init init_tk(loc: Location)
do
_text = once "/"
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 68
end
- init init_tk(fname: String, line: Int, pos: Int)
+ init init_tk(loc: Location)
do
_text = once "%"
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 69
end
- init init_tk(fname: String, line: Int, pos: Int)
+ init init_tk(loc: Location)
do
_text = once "=="
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 70
end
- init init_tk(fname: String, line: Int, pos: Int)
+ init init_tk(loc: Location)
do
_text = once "!="
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 71
end
- init init_tk(fname: String, line: Int, pos: Int)
+ init init_tk(loc: Location)
do
_text = once "<"
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 72
end
- init init_tk(fname: String, line: Int, pos: Int)
+ init init_tk(loc: Location)
do
_text = once "<="
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 73
end
- init init_tk(fname: String, line: Int, pos: Int)
+ init init_tk(loc: Location)
do
_text = once ">"
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 74
end
- init init_tk(fname: String, line: Int, pos: Int)
+ init init_tk(loc: Location)
do
_text = once ">="
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 75
end
- init init_tk(fname: String, line: Int, pos: Int)
+ init init_tk(loc: Location)
do
_text = once "<=>"
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 76
end
- init init_tk(text: String, fname: String, line: Int, pos: Int)
+ init init_tk(text: String, loc: Location)
do
_text = text
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 77
end
- init init_tk(text: String, fname: String, line: Int, pos: Int)
+ init init_tk(text: String, loc: Location)
do
_text = text
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 78
end
- init init_tk(text: String, fname: String, line: Int, pos: Int)
+ init init_tk(text: String, loc: Location)
do
_text = text
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 79
end
- init init_tk(text: String, fname: String, line: Int, pos: Int)
+ init init_tk(text: String, loc: Location)
do
_text = text
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 80
end
- init init_tk(text: String, fname: String, line: Int, pos: Int)
+ init init_tk(text: String, loc: Location)
do
_text = text
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 81
end
- init init_tk(text: String, fname: String, line: Int, pos: Int)
+ init init_tk(text: String, loc: Location)
do
_text = text
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 82
end
- init init_tk(text: String, fname: String, line: Int, pos: Int)
+ init init_tk(text: String, loc: Location)
do
_text = text
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 83
end
- init init_tk(text: String, fname: String, line: Int, pos: Int)
+ init init_tk(text: String, loc: Location)
do
_text = text
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 84
end
- init init_tk(text: String, fname: String, line: Int, pos: Int)
+ init init_tk(text: String, loc: Location)
do
_text = text
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 85
end
- init init_tk(text: String, fname: String, line: Int, pos: Int)
+ init init_tk(text: String, loc: Location)
do
_text = text
- _filename = fname
- _line = line
- _pos = pos
+ _location = loc
end
end
return 86
end
- init(fname: String, line: Int, pos: Int)
+ init(loc: Location)
do
- _filename = fname
_text = ""
- _line = line
- _pos = pos
+ _location = loc
end
end
redef class PError
readable writable var _message: String
- init init_error(fname: String, line: Int, pos: Int, message: String)
+ init init_error(message: String, loc: Location)
do
- init(fname, line, pos)
- _message = message
+ init(loc)
+ _message = message
end
end
else
if accept_state != -1 then
if accept_token == 0 then
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return null
end
if accept_token == 1 then
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
var token_text = _text.substring(0, accept_length)
- var token = new TEol.init_tk(token_text, _filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TEol.init_tk(token_text, location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 2 then
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
var token_text = _text.substring(0, accept_length)
- var token = new TComment.init_tk(token_text, _filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TComment.init_tk(token_text, location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 3 then
- var token = new TKwpackage.init_tk(_filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TKwpackage.init_tk(location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 4 then
- var token = new TKwimport.init_tk(_filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TKwimport.init_tk(location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 5 then
- var token = new TKwclass.init_tk(_filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TKwclass.init_tk(location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 6 then
- var token = new TKwabstract.init_tk(_filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TKwabstract.init_tk(location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 7 then
- var token = new TKwinterface.init_tk(_filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TKwinterface.init_tk(location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 8 then
- var token = new TKwuniversal.init_tk(_filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TKwuniversal.init_tk(location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 9 then
- var token = new TKwspecial.init_tk(_filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TKwspecial.init_tk(location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 10 then
- var token = new TKwend.init_tk(_filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TKwend.init_tk(location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 11 then
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
var token_text = _text.substring(0, accept_length)
- var token = new TKwmeth.init_tk(token_text, _filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TKwmeth.init_tk(token_text, location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 12 then
- var token = new TKwtype.init_tk(_filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TKwtype.init_tk(location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 13 then
- var token = new TKwattr.init_tk(_filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TKwattr.init_tk(location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 14 then
- var token = new TKwinit.init_tk(_filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TKwinit.init_tk(location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 15 then
- var token = new TKwredef.init_tk(_filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TKwredef.init_tk(location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 16 then
- var token = new TKwis.init_tk(_filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TKwis.init_tk(location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 17 then
- var token = new TKwdo.init_tk(_filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TKwdo.init_tk(location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 18 then
- var token = new TKwreadable.init_tk(_filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TKwreadable.init_tk(location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 19 then
- var token = new TKwwritable.init_tk(_filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TKwwritable.init_tk(location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 20 then
- var token = new TKwvar.init_tk(_filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TKwvar.init_tk(location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 21 then
- var token = new TKwintern.init_tk(_filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TKwintern.init_tk(location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 22 then
- var token = new TKwextern.init_tk(_filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TKwextern.init_tk(location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 23 then
- var token = new TKwprotected.init_tk(_filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TKwprotected.init_tk(location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 24 then
- var token = new TKwprivate.init_tk(_filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TKwprivate.init_tk(location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 25 then
- var token = new TKwintrude.init_tk(_filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TKwintrude.init_tk(location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 26 then
- var token = new TKwif.init_tk(_filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TKwif.init_tk(location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 27 then
- var token = new TKwthen.init_tk(_filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TKwthen.init_tk(location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 28 then
- var token = new TKwelse.init_tk(_filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TKwelse.init_tk(location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 29 then
- var token = new TKwwhile.init_tk(_filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TKwwhile.init_tk(location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 30 then
- var token = new TKwfor.init_tk(_filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TKwfor.init_tk(location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 31 then
- var token = new TKwin.init_tk(_filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TKwin.init_tk(location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 32 then
- var token = new TKwand.init_tk(_filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TKwand.init_tk(location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 33 then
- var token = new TKwor.init_tk(_filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TKwor.init_tk(location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 34 then
- var token = new TKwnot.init_tk(_filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TKwnot.init_tk(location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 35 then
- var token = new TKwreturn.init_tk(_filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TKwreturn.init_tk(location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 36 then
- var token = new TKwcontinue.init_tk(_filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TKwcontinue.init_tk(location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 37 then
- var token = new TKwbreak.init_tk(_filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TKwbreak.init_tk(location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 38 then
- var token = new TKwabort.init_tk(_filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TKwabort.init_tk(location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 39 then
- var token = new TKwassert.init_tk(_filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TKwassert.init_tk(location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 40 then
- var token = new TKwnew.init_tk(_filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TKwnew.init_tk(location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 41 then
- var token = new TKwisa.init_tk(_filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TKwisa.init_tk(location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 42 then
- var token = new TKwonce.init_tk(_filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TKwonce.init_tk(location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 43 then
- var token = new TKwsuper.init_tk(_filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TKwsuper.init_tk(location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 44 then
- var token = new TKwself.init_tk(_filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TKwself.init_tk(location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 45 then
- var token = new TKwtrue.init_tk(_filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TKwtrue.init_tk(location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 46 then
- var token = new TKwfalse.init_tk(_filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TKwfalse.init_tk(location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 47 then
- var token = new TKwnull.init_tk(_filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TKwnull.init_tk(location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 48 then
- var token = new TKwas.init_tk(_filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TKwas.init_tk(location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 49 then
- var token = new TKwwith.init_tk(_filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TKwwith.init_tk(location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 50 then
- var token = new TKwnullable.init_tk(_filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TKwnullable.init_tk(location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 51 then
- var token = new TKwisset.init_tk(_filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TKwisset.init_tk(location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 52 then
- var token = new TOpar.init_tk(_filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TOpar.init_tk(location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 53 then
- var token = new TCpar.init_tk(_filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TCpar.init_tk(location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 54 then
- var token = new TObra.init_tk(_filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TObra.init_tk(location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 55 then
- var token = new TCbra.init_tk(_filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TCbra.init_tk(location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 56 then
- var token = new TComma.init_tk(_filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TComma.init_tk(location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 57 then
- var token = new TColumn.init_tk(_filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TColumn.init_tk(location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 58 then
- var token = new TQuad.init_tk(_filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TQuad.init_tk(location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 59 then
- var token = new TAssign.init_tk(_filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TAssign.init_tk(location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 60 then
- var token = new TPluseq.init_tk(_filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TPluseq.init_tk(location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 61 then
- var token = new TMinuseq.init_tk(_filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TMinuseq.init_tk(location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 62 then
- var token = new TDotdotdot.init_tk(_filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TDotdotdot.init_tk(location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 63 then
- var token = new TDotdot.init_tk(_filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TDotdot.init_tk(location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 64 then
- var token = new TDot.init_tk(_filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TDot.init_tk(location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 65 then
- var token = new TPlus.init_tk(_filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TPlus.init_tk(location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 66 then
- var token = new TMinus.init_tk(_filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TMinus.init_tk(location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 67 then
- var token = new TStar.init_tk(_filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TStar.init_tk(location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 68 then
- var token = new TSlash.init_tk(_filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TSlash.init_tk(location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 69 then
- var token = new TPercent.init_tk(_filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TPercent.init_tk(location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 70 then
- var token = new TEq.init_tk(_filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TEq.init_tk(location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 71 then
- var token = new TNe.init_tk(_filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TNe.init_tk(location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 72 then
- var token = new TLt.init_tk(_filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TLt.init_tk(location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 73 then
- var token = new TLe.init_tk(_filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TLe.init_tk(location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 74 then
- var token = new TGt.init_tk(_filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TGt.init_tk(location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 75 then
- var token = new TGe.init_tk(_filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TGe.init_tk(location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 76 then
- var token = new TStarship.init_tk(_filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TStarship.init_tk(location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 77 then
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
var token_text = _text.substring(0, accept_length)
- var token = new TClassid.init_tk(token_text, _filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TClassid.init_tk(token_text, location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 78 then
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
var token_text = _text.substring(0, accept_length)
- var token = new TId.init_tk(token_text, _filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TId.init_tk(token_text, location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 79 then
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
var token_text = _text.substring(0, accept_length)
- var token = new TAttrid.init_tk(token_text, _filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TAttrid.init_tk(token_text, location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 80 then
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
var token_text = _text.substring(0, accept_length)
- var token = new TNumber.init_tk(token_text, _filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TNumber.init_tk(token_text, location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 81 then
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
var token_text = _text.substring(0, accept_length)
- var token = new TFloat.init_tk(token_text, _filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TFloat.init_tk(token_text, location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 82 then
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
var token_text = _text.substring(0, accept_length)
- var token = new TChar.init_tk(token_text, _filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TChar.init_tk(token_text, location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 83 then
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
var token_text = _text.substring(0, accept_length)
- var token = new TString.init_tk(token_text, _filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TString.init_tk(token_text, location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 84 then
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
var token_text = _text.substring(0, accept_length)
- var token = new TStartString.init_tk(token_text, _filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TStartString.init_tk(token_text, location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 85 then
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
var token_text = _text.substring(0, accept_length)
- var token = new TMidString.init_tk(token_text, _filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TMidString.init_tk(token_text, location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
if accept_token == 86 then
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
var token_text = _text.substring(0, accept_length)
- var token = new TEndString.init_tk(token_text, _filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new TEndString.init_tk(token_text, location)
push_back(accept_length)
_pos = accept_pos
_line = accept_line
return token
end
else
+ var location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
if _text.length > 0 then
- var token = new PError.init_error(_filename, start_line + 1, start_pos + 1, "Unknown token: {_text}")
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new PError.init_error("Unknown token: {_text}", location)
return token
else
- var token = new EOF(_filename, start_line + 1, start_pos + 1)
- token._location = new Location(_filename, start_line + 1, accept_line + 1, start_pos + 1, accept_pos)
+ var token = new EOF(location)
return token
end
end