1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/lib/mjit
Aaron Patterson 56e5210cde
More robust macro parser (#6343)
I want to use more complicated macros with MJIT.  For example:

```
  # define SHAPE_MASK (((unsigned int)1 << SHAPE_BITS) - 1)
```

This commit adds a simple recursive descent parser that produces an AST
and a small visitor that converts the AST to Ruby.
2022-09-09 15:19:23 +09:00
..
c_32.rb More robust macro parser (#6343) 2022-09-09 15:19:23 +09:00
c_64.rb More robust macro parser (#6343) 2022-09-09 15:19:23 +09:00
c_pointer.rb
c_type.rb
compiler.rb