Skip to content

Commit

Permalink
Merge pull request #1589 from ruby/autoload
Browse files Browse the repository at this point in the history
  • Loading branch information
kddnewton authored Sep 22, 2023
2 parents 0b03079 + 9168287 commit 91417a6
Show file tree
Hide file tree
Showing 20 changed files with 936 additions and 753 deletions.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,13 @@ a.out
/java/org/yarp/AbstractNodeVisitor.java
/java/org/yarp/Loader.java
/java/org/yarp/Nodes.java
/lib/yarp/mutation_visitor.rb
/lib/yarp/compiler.rb
/lib/yarp/dispatcher.rb
/lib/yarp/dsl.rb
/lib/yarp/mutation_compiler.rb
/lib/yarp/node.rb
/lib/yarp/serialize.rb
/lib/yarp/visitor.rb
/src/node.c
/src/prettyprint.c
/src/serialize.c
Expand Down
2 changes: 1 addition & 1 deletion bin/parse
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ end
result.mark_newlines! if ENV["MARK_NEWLINES"]

value = result.value
value = value.accept(YARP::DesugarVisitor.new) if ENV["DESUGAR"]
value = value.accept(YARP::DesugarCompiler.new) if ENV["DESUGAR"]

parts = {}
parts["Comments"] = result.comments if result.comments.any?
Expand Down
6 changes: 5 additions & 1 deletion docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,13 @@ A lot of code in YARP's repository is templated from a single configuration file
* `java/org/yarp/AbstractNodeVisitor.java` - for defining the visitor interface for the nodes in Java
* `java/org/yarp/Loader.java` - for defining how to deserialize the nodes in Java
* `java/org/yarp/Nodes.java` - for defining the nodes in Java
* `lib/yarp/mutation_visitor.rb` - for defining the mutation visitor for the nodes in Ruby
* `lib/yarp/compiler.rb` - for defining the compiler for the nodes in Ruby
* `lib/yarp/dispatcher.rb` - for defining the dispatch visitors for the nodes in Ruby
* `lib/yarp/dsl.rb` - for defining the DSL for the nodes in Ruby
* `lib/yarp/mutation_compiler.rb` - for defining the mutation compiler for the nodes in Ruby
* `lib/yarp/node.rb` - for defining the nodes in Ruby
* `lib/yarp/serialize.rb` - for defining how to deserialize the nodes in Ruby
* `lib/yarp/visitor.rb` - for defining the visitor interface for the nodes in Ruby
* `src/node.c` - for defining how to free the nodes in C and calculate the size in memory in C
* `src/prettyprint.c` - for defining how to prettyprint the nodes in C
* `src/serialize.c` - for defining how to serialize the nodes in C
Expand Down
Loading

0 comments on commit 91417a6

Please sign in to comment.