Skip to content

Commit 92768b6

Browse files
eregonandrykonchin
authored andcommitted
Document tool/truffle_ast.rb
1 parent 377a7f1 commit 92768b6

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

doc/contributor/prism.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ $ bin/parse -e '1&.itself'
3838
We can also see what the AST as Java nodes and without extra location fields looks like on TruffleRuby with:
3939
```bash
4040
$ cd truffleruby
41-
$ t -q ruby tool/parse_ast.rb '1&.itself'
41+
$ jt -q ruby tool/parse_ast.rb '1&.itself'
4242
Source:
4343
1&.itself
4444

@@ -72,3 +72,10 @@ RootNode line: 0
7272
FixnumNode line: 0, long: 1
7373
, null, null
7474
```
75+
76+
## Print the Truffle AST
77+
78+
```bash
79+
$ cd truffleruby
80+
$ jt -q ruby tool/truffle_ast.rb '1&.itself'
81+
```

0 commit comments

Comments
 (0)