blob: c9da979ae0bb56ccca695dbd291e229468d2593c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# Parse
---
Build initial AST
# Value
## Integer `\d+`
## Float `\d+\.\d+`
## String `".*?"`
## Char `'\\?.'
# Name `[_a-z][a-zA-z0-9_]{0,59}`
# Type `[A-Z][a-zA-z0-9_]{0,59}`
On type completion look up if type is a builtin
# Symbol `\.[a-zA-z0-9_]{0,60}`
# Op
## Op ``[a-z_]+|OPERATORS`
## Action `[?@#^]`
# List
## List `()`
## Define `[]`
## Action `{}`
|