diff options
author | Kevin Newton <[email protected]> | 2024-10-11 14:43:23 -0400 |
---|---|---|
committer | git <[email protected]> | 2024-10-11 19:34:57 +0000 |
commit | 5f62522d5b8bd162ddf657680b8532eadeaae21f () | |
tree | fa8f8e757ac296dc658cc9dd809f51ddb4fd6401 /lib/prism/ffi.rb | |
parent | 8aeb60aec88dd68fdfbaa75ca06e65188233ccbf (diff) |
[ruby/prism] Prism::StringQuery
Introduce StringQuery to provide methods to access some metadata about the Ruby lexer. https://.com/ruby/prism/commit/d3f55b67b9
-rw-r--r-- | lib/prism/ffi.rb | 39 |
1 files changed, 39 insertions, 0 deletions
@@ -73,6 +73,7 @@ module Prism callback :pm_parse_stream_fgets_t, [:pointer, :int, :pointer], :pointer enum :pm_string_init_result_t, %i[PM_STRING_INIT_SUCCESS PM_STRING_INIT_ERROR_GENERIC PM_STRING_INIT_ERROR_DIRECTORY] load_exported_functions_from( "prism.h", @@ -83,6 +84,9 @@ module Prism "pm_serialize_lex", "pm_serialize_parse_lex", "pm_parse_success_p", [:pm_parse_stream_fgets_t] ) @@ -492,4 +496,39 @@ module Prism values.pack(template) end end end |