5 ms·
Hacking S-expressions into Ruby
- _mikz 12y ago` puts RubyVM::InstructionSequence.compile('[]').disasm` points to `newarray` which is YARV instruction: https://github.com/ruby/ruby/blob/ca6b174078fa15f33655be704d9409fdbc4f9929/insns.def#L423 https://github.com/ruby/ruby/blob/ca6b174078fa15f33655be704d...
- lookatparsetree 12y agoHave a look at https://github.com/seattlerb/parsetree https://github.com/seattlerb/parsetree
- bradleyland 12y agoThat version only works with 1.8. There is an updated fork though, sexp_processor: https://github.com/seattlerb/sexp_processor https://github.com/seattlerb/sexp_processor