Expand description
Loads all needed items for outside crates to use.
Re-exports§
Modules§
- comment
Commentstruct- keyword
KeywordandPartialKeywordenums.- literal
- Luau literals
- operator
OperatorandCompoundOperatorstructs.- symbol
Symbolstruct.
Structs§
- Lexer
- The main component of this crate, the lexer.
- Parse
Error - An error that can be met during parsing.
- Position
- A struct representing a specific point in a document. Lines and characters are zero-based.
- State
- A struct representing the state of a lexer at a specific time.
- Token
- A single token. Every
lexableitem becomes a token inLexer::next_token().
Enums§
- Comment
- A comment.
- Compound
Operator - A luau compound operator like
+=and//= - Keyword
- Words that can only be used as be keywords. Check
PartialKeyword. - Lexer
Comment - A comment.
- Literal
- A Luau literal value
- Luau
Number - A luau number. The stored string will include the
0b, or0x. The only reason the different types actually exist is to allow the user to easily know which one is used without needing to check the actual string. - Luau
String - A Luau string. The stored string will include the quotes/double quotes/backticks. The only reason the different types actually exist is to allow the user to easily know which one is used without needing to check the actual string.
- Operator
- A luau operator like
+and- - Partial
Keyword - Words that can be keywords or identifiers, depending on the context.
Check
Keyword. - Symbol
- A luau symbol like
(and) - Token
Type - All token types.
Traits§
- Lexable
- A trait which means this item can be lexed.
Type Aliases§
- Position
Component - Each component (line and character) in the
Positionstruct.