Ken Domino

Results 839 comments of Ken Domino

It looks like the main reason why the spec grammar is so slow is because of full context fallbacks for [primary](https://github.com/kaby76/fortran/blob/751e8920d84d83478a99381cd12f654ed62c0cc9/FortranParser.g4#L1496). Here is the performance trace for parsing [intrinsic_pack.f90](https://github.com/kaby76/fortran/blob/751e8920d84d83478a99381cd12f654ed62c0cc9/examples/flang/test/f90_correct/src/intrinsic_pack.f90), which...

I added a [tool to Trash clone and rename certain instances of a parser rule symbol](https://github.com/kaby76/Trash/tree/dev/src/trclonereplace) on the right-hand side of a rule. In some grammars, like the example out...

It looks like the best way to go about fixing the scraped grammar is to open the debugger for a particularly bad performing example ([examples/flang/test/f90_correct/src/intrinsic_pack.f90](https://github.com/antlr/grammars-v4/blob/2a3a6bdcbe1f9b975591d194d69df22e336dd7da/fortran/fortran90/examples/flang/test/f90_correct/src/intrinsic_pack.f90)), and stop at the first...

> Sounds laborious. I wonder what patterns you'll find across the long haul. So far, for `entity_decl,` `array_spec,` and `designator`, the problem is AdaptivePredict() reporting an "ambiguity" when choosing an...

> The standard: mentions STATUS Referenced f9x.book, page 111. Just to be clear, you are referring to [the N692.pdf draft](https://wg5-fortran.org/N001-N1100/N692.pdf), the last revision before publishing [ISO 1539:1990](https://www.iso.org/standard/6128.html). Normally, it should...

See https://github.com/antlr/grammars-v4/pull/4106 for a fix.

> I suggested a further test. I hope it helps. My test file worked but I quickly created another one to show a related problem. Sorry but where are these...

> ... preview ... What "preview"?

> Odd. The comments still say "Pending" on 4106. I'll copy them here. I don't see any "pending" comments on https://github.com/antlr/grammars-v4/pull/4106 You said `I quickly created another one to show...

The [Intellij IDEA Antlr4 plugin](https://github.com/antlr/intellij-plugin-v4) "ANTLR Preview" pane uses the "interpreter" form of the parsing engine. It does not use a compiled parser. The tool should warn whether there are...