TokenTypeHelpers

loreline.TokenTypeHelpers (Class)

Helper functions for TokenType enum.

Static Members

equals(a: Anonymous, b: Anonymous): Bool

Compares two token types for equality.

Name Type Description
a Anonymous First token type
b Anonymous Second token type
Returns Description
Bool Whether the token types are equal

isComment(a: Anonymous): Bool

Checks if a token type is a comment.

Name Type Description
a Anonymous Token type to check
Returns Description
Bool Whether the token type is a comment

isAssignOp(a: Anonymous): Bool
Name Type
a Anonymous
Returns
Bool

isIdentifier(a: Anonymous): Bool

Checks if a token type is an identifier.

Name Type Description
a Anonymous Token type to check
Returns Description
Bool Whether the token type is an identifier

isBlockStart(a: Anonymous): Bool

Checks if a token is a block start

Name Type Description
a Anonymous Token type to check
Returns Description
Bool Whether the token type is a block start

toCodeString(a: Anonymous): String
Name Type
a Anonymous
Returns
String