3 ms·
I have a PhD in compiling Ruby and I struggle to read and modify that file.
by chrisseaton 5y ago
I have a PhD in compiling Ruby and I struggle to read and modify that file.
- adamgordonbell 5y agoRuby is very flexible. Is that the issue? I suspect not, because Scala is super flexible and probably more difficult to parse, but has a better organized parser.
- chrisseaton 5y agoThe language is just quite large and quite complex to parse - context-sensitive and requires interaction back and forth with the lexer as it parses. TreeSitter seems to have a much simpler Ruby parser - but I believe it ignores the context-sensitive parts of Ruby.
- jasonwatkinspdx 5y agoRuby's syntactic flexibility is definitely a big factor in it.