mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
38 lines
610 B
Plaintext
38 lines
610 B
Plaintext
//This file was auto-corrected by findeclaration.exe on 25.5.2012 20:42:33
|
|
|
|
/*
|
|
Class: Token
|
|
Represents an entity and position in the source code.
|
|
*/
|
|
/token
|
|
var/value
|
|
var/line
|
|
var/column
|
|
|
|
/token/New(v, l=0, c=0)
|
|
value=v
|
|
line=l
|
|
column=c
|
|
|
|
/token/string
|
|
/token/symbol
|
|
/token/word
|
|
/token/keyword
|
|
/token/number/New()
|
|
.=..()
|
|
if(!isnum(value))
|
|
value=text2num(value)
|
|
ASSERT(!isnull(value))
|
|
/token/accessor
|
|
var/object
|
|
var/member
|
|
|
|
/token/accessor/New(object, member, l=0, c=0)
|
|
src.object=object
|
|
src.member=member
|
|
src.value="[object].[member]" //for debugging only
|
|
src.line=l
|
|
src.column=c
|
|
|
|
/token/end
|