Skip to content

Commit 25ac16b

Browse files
tkluckJeffBezanson
authored andcommitted
devdocs: can run the parser without full re-build (#33980)
This was useful to me when working on #32071 and might be useful for others as well.
1 parent 042f097 commit 25ac16b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

doc/src/devdocs/eval.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,14 @@ which handles tokenizing Julia code and turning it into an AST, and [`julia-synt
7171
which handles transforming complex AST representations into simpler, "lowered" AST representations
7272
which are more suitable for analysis and execution.
7373

74+
If you want to test the parser without re-building Julia in its entirety, you can run the frontend
75+
on its own as follows:
76+
77+
$ cd src
78+
$ flisp/flisp
79+
> (load "jlfrontend.scm")
80+
> (jl-parse-file "<filename>")
81+
7482
## [Macro Expansion](@id dev-macro-expansion)
7583

7684
When [`eval()`](@ref) encounters a macro, it expands that AST node before attempting to evaluate

0 commit comments

Comments
 (0)