type

SyntaxType

src @Serializable { simple=true }
enum class SyntaxType : Enum

SyntaxType models a syntax specific segment type such keyword or comment

enum

text

Normal text

bracket

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

keyword

Language specific keyword

literal

String literal

comment

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

constructors

fromStr

Return the SyntaxType instance for the specified name.

fields

vals

List of SyntaxType values indexed by ordinal

Slot Details

bracket

src const static SyntaxType bracket := ...

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

comment

src const static SyntaxType comment := ...

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

fromStr

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

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

keyword

src const static SyntaxType keyword := ...

Language specific keyword

literal

src const static SyntaxType literal := ...

String literal

text

src const static SyntaxType text := ...

Normal text

vals

src const static SyntaxType[] vals := ...

List of SyntaxType values indexed by ordinal