From 55326a915f25608be1d40ab32baa9fc57762615d Mon Sep 17 00:00:00 2001 From: HParker Date: Thu, 7 Dec 2023 15:47:36 -0800 Subject: Introduce --parser runtime flag Introduce runtime flag for specifying the parser, ``` ruby --parser=prism ``` also update the description: ``` $ ruby --parser=prism --version ruby 3.3.0dev (2023-12-08T04:47:14Z add-parser-runtime.. 0616384c9f) +PRISM [x86_64-darwin23] ``` [Bug #20044] --- vm.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'vm.c') diff --git a/vm.c b/vm.c index 079809e05f..f82523ad4e 100644 --- a/vm.c +++ b/vm.c @@ -4256,6 +4256,14 @@ rb_ruby_verbose_ptr(void) return &cr->verbose; } +static bool prism; + +bool * +rb_ruby_prism_ptr(void) +{ + return &prism; +} + VALUE * rb_ruby_debug_ptr(void) { -- cgit v1.2.3