ruby-ripper
detecting errors during ruby ripper parsing
Has anyone figured out how to detect errors when malformed input is given to Ruby\'s ripper library? ruby-1.9.2-p180 :002 > Ripper.sexp(\"array[1 2]\")[详细]
2023-04-12 05:02 分类:问答Safe to parse user submitted code using Ripper?
I\'开发者_JAVA技巧m using the Ruby 1.9 Ripper library to analyze specific parts of a source code by building it\'s sexp tree. From what I know, Ripper just uses a lexer / parser to do this.[详细]
2023-03-08 19:44 分类:问答How would I recompile Ripper's AST back to Ruby code?
Ripper is the the parsing library that ships with Ruby 1.9.It transforms Ruby code into an AST, like so:[详细]
2023-02-08 17:51 分类:问答