summaryrefslogtreecommitdiff
path: root/ext/json
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2025-01-20 16:42:22 +0900
committerNobuyoshi Nakada <[email protected]>2025-01-20 21:37:20 +0900
commitba44e92573f5fdd23d29cfb49d8afe78287d5f79 ()
treea2d643670414b6d82f4692732d91a5606321652f /ext/json
parent8c30970c58fff823b827b5643585ce96a6340853 (diff)
ext/json no longer uses ragel
Notes: Merged: https://.com/ruby/ruby/pull/12599
-rw-r--r--ext/json/parser/prereq.mk13
1 files changed, 0 insertions, 13 deletions
@@ -1,13 +0,0 @@
-RAGEL = ragel
-
-.SUFFIXES: .rl
-
-.rl.c:
- $(RAGEL) -G2 $<
- $(BASERUBY) -pli -e '$$_.sub!(/[ \t]+$$/, "")' \
- -e '$$_.sub!(/^static const int (JSON_.*=.*);$$/, "enum {\\1};")' \
- -e '$$_.sub!(/^(static const char) (_JSON(?:_\w+)?_nfa_\w+)(?=\[\] =)/, "\\1 MAYBE_UNUSED(\\2)")' \
- -e '$$_.sub!(/0 <= ([\( ]+\*[\( ]*p\)+) && \1 <= 31/, "0 <= (signed char)(*(p)) && (*(p)) <= 31")' \
- -e '$$_ = "/* This file is automatically generated from parser.rl by using ragel */\n" + $$_ if $$. == 1' $@
-
-parser.c: