Skip to content

Commit 3055159

Browse files
committed
Improve Prism docs
1 parent 0e13bee commit 3055159

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

doc/contributor/prism.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@
1010

1111
```bash
1212
cd prism
13-
chruby 3.2.
1413
bundle exec rake
15-
bundle exec ruby -Ilib -rprism -e 'pp Prism.parse("1&.itself")'
14+
bin/parse -e '1&.itself'
15+
```
16+
17+
We can also see what the AST as Java nodes and without extra location fields looks like on TruffleRuby with:
18+
```bash
19+
cd truffleruby
20+
jt -q ruby -e 'puts Truffle::Debug.yarp_parse(ARGV[0])' -- '1&.itself'
1621
```

0 commit comments

Comments
 (0)