summaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
authorAaron Patterson <tenderlove@ruby-lang.org>2022-09-08 23:19:23 -0700
committerGitHub <noreply@github.com>2022-09-09 15:19:23 +0900
commit56e5210cdeda685b5948148b7ea5c72eac0b5e06 (patch)
treede53e69950b97549c73b10aa2bcc5070e60178c8 /template
parentbe560332484c8893bec004f1250e48edcd4720e0 (diff)
downloadruby-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 'template')
0 files changed, 0 insertions, 0 deletions