diff options
author | Aaron Patterson <tenderlove@ruby-lang.org> | 2022-09-08 23:19:23 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-09 15:19:23 +0900 |
commit | 56e5210cdeda685b5948148b7ea5c72eac0b5e06 (patch) | |
tree | de53e69950b97549c73b10aa2bcc5070e60178c8 /tool/mk_builtin_loader.rb | |
parent | be560332484c8893bec004f1250e48edcd4720e0 (diff) | |
download | ruby-56e5210cdeda685b5948148b7ea5c72eac0b5e06.tar.gz |
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.
Diffstat (limited to 'tool/mk_builtin_loader.rb')
0 files changed, 0 insertions, 0 deletions