Skip to content

Commit

Permalink
Link the node pattern debugger in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Earlopain authored and bbatsov committed Aug 2, 2024
1 parent 85764c9 commit 0fa1c3d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/modules/ROOT/pages/node_pattern.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,8 @@ Curious about how it works?
Check more details in the
https://www.rubydoc.info/gems/rubocop-ast/RuboCop/AST/NodePattern[documentation]
or browse the https://github.com/rubocop/rubocop-ast/blob/master/lib/rubocop/ast/node_pattern.rb[source code]
directly. It's easy to read and hack on.
directly. It's easy to read and hack on. The https://nodepattern.herokuapp.com/[node pattern debugger]
is an online tool where you can quickly try out patterns you create.

The https://github.com/rubocop/rubocop-ast/blob/master/spec/rubocop/ast/node_pattern_spec.rb[specs]
are also very useful to comprehend each feature.
2 changes: 2 additions & 0 deletions docs/modules/ROOT/pages/node_pattern_compiler.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
This documentation is aimed at anyone wanting to understand / modify the `NodePattern` compiler.
It assumes some familiarity with the syntax of https://github.com/rubocop/rubocop-ast/blob/master/docs/modules/ROOT/pages/node_pattern.adoc[`NodePattern`], as well as the AST produced by the `parser` gem.

TIP: Use the https://nodepattern.herokuapp.com/[node pattern debugger] if you want to quickly try things out.

== High level view

The `NodePattern` compiler uses the same techniques as the `parser` gem:
Expand Down

0 comments on commit 0fa1c3d

Please sign in to comment.