skullbrain-lexer 0.1.0

Lexer for the skullbrain programming language, responsible for tokenizing source code.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
---
source: skullbrain-lexer/src/tests.rs
expression: formatted_tokens
info: gyatt x is invalid skibidi 42.
input_file: skullbrain-lexer/src/inputs/2.7.skull
---
Declaration(VariableDeclaration { is_mutable: true })@5:"gyatt"
Whitespace@1:" "
Ident@1:"x"
Whitespace@1:" "
Punctuation(Colon)@2:"is"
Whitespace@1:" "
Ident@7:"invalid"
Whitespace@1:" "
Operator(Assignment)@7:"skibidi"
Whitespace@1:" "
Literial(Int { base: Decimal, is_empty: false })@2:"42"
Punctuation(Dot)@1:"."