by Kent » Tue Apr 19, 2005 10:16 am
Hmm. The definitive list of tokens/keywords recognized by the compiler is in the Hugo Book starting on page 228 or so. Note that this includes some non-language tokens (specifically those with a '#' suffix), and doesn't include the keywords that are used to define various elements for the compiler, namely:
array
attribute
class
compound
constant
enumerate
event
global
object
property
punctuation
removal
replace
routine
synonym
verb
xverb
I think that's it--if you're feeling adventurous you can peek at hcpass.c in the Hugo source code to see what the Pass1() function looks at to start parsing source code.
(Yeah, at some point it would be good to consolidate this all in one place. The next edition of the Hugo Book.)
Hmm. The definitive list of tokens/keywords recognized by the compiler is in the Hugo Book starting on page 228 or so. Note that this includes some non-language tokens (specifically those with a '#' suffix), and doesn't include the keywords that are used to define various elements for the compiler, namely:
array
attribute
class
compound
constant
enumerate
event
global
object
property
punctuation
removal
replace
routine
synonym
verb
xverb
I think that's it--if you're feeling adventurous you can peek at hcpass.c in the Hugo source code to see what the Pass1() function looks at to start parsing source code.
(Yeah, at some point it would be good to consolidate this all in one place. The next edition of the Hugo Book.)