According to this parsetree will not work in ruby 1.9. I have no experience in computer science, but I have been programming for several years. Can someone explain in a bit more detail why parsetree will not work in ruby 1.9.
The ruby 1.8 interpreter is designed and then passed over the abstract syntax tree, while the ruby 1.9 interpreter is a bytecode. Therefore, parsetree does not have AST in runtime.
ngty has published a gem called sourcify, which provides many ParseTree features in Ruby 1.9.
, sexp, . , , , Proc :
## The old ParseTree way # proc.to_ruby ## The sourcify way - but may raise NoMatchingProcError or MultipleMatchingProcsPerLineError # proc.to_source ## The sourcify way - giving :attached_to a symbol to help it find the correct Proc proc.to_source :attached_to => :name_of_proc
, ParseTree Ruby 1.9.
ParseTree seems to be dead due to some changes inside Ruby 1.9, according to this link: http://blog.zenspider.com/2009/04/parsetree-eol.html
Although, perhaps some people will come up with some workarounds for its part.
Source: https://habr.com/ru/post/1717735/More articles:see if an object exists in index [i] in NSMUtableArray - arrayscocos2d MFMailComposeViewController - iphonemultithreading when locking the main thread - multithreadingErlang erlIDE: which -compile options are supported? - compiler-constructionCreate a G3 facsimile image with ASN.1 wrapper for ldap photo - c #Oracle Duration Function - sqlКак переопределить курсор: текст в меню asp: для элементов без кликов? - asp.netHow to set WinForms text box to overwrite mode - c #Cross-language coding standards? - javascriptBitwise operations: online resources? - bit-manipulationAll Articles