arl.org: rewrite parser bit
This commit is contained in:
15
arl.org
15
arl.org
@@ -1,5 +1,6 @@
|
|||||||
#+title: ARL - Issue tracker
|
#+title: ARL - Issue tracker
|
||||||
#+date: 2026-01-23
|
#+date: 2026-01-23
|
||||||
|
#+filetags: arl
|
||||||
|
|
||||||
* TODO Write a minimum working transpiler
|
* TODO Write a minimum working transpiler
|
||||||
We need to be able to compile the following file:
|
We need to be able to compile the following file:
|
||||||
@@ -23,13 +24,13 @@ It's a Eulerian Path from the source code to the native executable.
|
|||||||
[[file:src/parser/]]
|
[[file:src/parser/]]
|
||||||
[[file:include/arl/parser/]]
|
[[file:include/arl/parser/]]
|
||||||
|
|
||||||
We need to generate some form of AST from the token stream. We want
|
We need to generate some form of AST from the token stream. This
|
||||||
something a stage above the tokeniser so it should distinguish the
|
should be a little more advanced than our initial stream,
|
||||||
following cases:
|
distinguishing between
|
||||||
- Literal value
|
- Literal values
|
||||||
- Primitive call
|
- Primitive calls
|
||||||
*** TODO AST design
|
- References to otherwise undefined words (may be defined through
|
||||||
*** TODO Token Stream to AST implementation
|
import or later on)
|
||||||
** TODO Stack effect/type analysis
|
** TODO Stack effect/type analysis
|
||||||
[[file:src/analysis/]]
|
[[file:src/analysis/]]
|
||||||
[[file:include/arl/analysis/]]
|
[[file:include/arl/analysis/]]
|
||||||
|
|||||||
Reference in New Issue
Block a user