Fantom

 

enum class syntax::SyntaxType

sys::Obj
  sys::Enum
    syntax::SyntaxType

@Serializable { simple=true }

Source

SyntaxType models a syntax specific segment type such keyword or comment

bracket

const static SyntaxType bracket := ...

Source

Bracket such as {, }, (, ), [, or ]

comment

const static SyntaxType comment := ...

Source

Comment section either to end of line or multi-line block

fromStr

static new fromStr(Str name, Bool checked := true)

Source

Return the SyntaxType instance for the specified name. If not a valid name and checked is false return null, otherwise throw ParseErr.

keyword

const static SyntaxType keyword := ...

Source

Language specific keyword

literal

const static SyntaxType literal := ...

Source

String literal

text

const static SyntaxType text := ...

Source

Normal text

vals

const static SyntaxType[] vals := ...

Source

List of SyntaxType values indexed by ordinal