Ross Patterson

Results 15 issues of Ross Patterson

For the same reason that parsers need a `self`-like attribute in semantic predicates(_i.e._, `self` vs. `this` vs. ...), lexers do as well. [Commit 38c4e2b0028d2a305d0cf05ce5669d23d67ea88e](https://github.com/RossPatterson/antlr4/commit/38c4e2b0028d2a305d0cf05ce5669d23d67ea88e), back in 2014, added `$parser` for...

Parse hexstrings and binarystrings correctly per ANSI standard. Fixes #2741. * Identify hexstrings and binarystrings in the parse tree by their own parser rules. * Do not accept hexstrings containing...

example
rexx

Rexx has support for string literals in hexadecimal and binary. Hexstrings are, per ISO standard section 6.2.2.38, strings of traditional hex digits without regard to case, with optional blanks between...

rexx

There doesn't seem to be a way to make the [grammar tester](https://github.com/antlr/grammars-v4/tree/master/_grammar-test) work for a grammar that uses `options {superClass=...;}`. Specifically, there doesn't appear to be a way to feed...

infrastructure

@KvanTTT had a suggestion for simplifying the change I made in PR #2746. Since that PR was already merged, here's a new one. He already reviewed the change over in...

The Rexx parser contains a small amount of Java code in a couple of semating predicates. There does not appear to be a way to accomplish the parse without the...

target:python3
rexx

Rexx has a quirky definition for concatenation. In addition to the common case of an infix binary `||` operator, there are two more ways to concatenate values. The Rexx standard...

rexx

I found this during testing of PR #2855, but it's an existing problem. That change merely upgraded it from a hidden error to a test case failure. For example, the...

In [ANTLR discussion 3321](https://github.com/antlr/antlr4/discussions/3321#discussioncomment-3642335), @kaby76 wrote: > _But, even before this change, there is an ambiguity for input "binary_good1 = '1'b > " in [single_instruction](https://github.com/antlr/grammars-v4/blob/553522db0536ca80e0535351a19bdd8cbcc14e77/rexx/RexxParser.g4#L29), in choosing between [assignment](https://github.com/antlr/grammars-v4/blob/553522db0536ca80e0535351a19bdd8cbcc14e77/rexx/RexxParser.g4#L33) and...

rexx

The current Rexx grammar supports several non-standard syntaxes. These are peculiar to one dialect of Rexx, and should be moved to a separate grammar that makes it clear which dialect...

rexx