Ken Domino

Results 292 issues of Ken Domino

Mike, Thanks for this library. I am interested in computing the set of possible lookaheads in an Antlr grammar itself, specifically Expr.g4, defined at https://github.com/mike-lischke/antlr4-c3/blob/master/ports/c%23/test/Antlr4CodeCompletion.CoreUnitTest/Grammar/Expr.g4. I've ported your library to...

help wanted

* Changes to _scripts/regtest.sh so we don't uninstall/reinstall Trash tools. It's wasted bandwidth. * Add a loop around "go get" to repeat 5 times or fail. * In response to...

infrastructure

This is pretty weird. [sql/postgresql](https://github.com/antlr/grammars-v4/tree/master/sql/postgresql) produces errors for [case.sql](https://github.com/antlr/grammars-v4/blob/master/sql/postgresql/examples/case.sql), but it is not flagged in the test results. Note, it would skip a bad parse if an ".error" file exists,...

PostgreSQL

``` 2022-08-08T15:25:37.0856980Z go: github.com/antlr/antlr4/runtime/Go/[email protected]: invalid version: Get "https://proxy.golang.org/github.com/antlr/antlr4/runtime/%21go/antlr/@v/4.10.info": stream error: stream ID 7; INTERNAL_ERROR; received from peer 2022-08-08T15:25:37.0877720Z Build failed ``` Github has crappy links to the network. The Dart...

infrastructure

As per a conversation in [the antlr-discussions Google group](https://groups.google.com/g/antlr-discussion/c/-g5CF0MuUBk), there is confusion as to use of the grammars in this Github repo that are missing a copyright or license notice....

license

Take [the haskell grammar](https://github.com/antlr/grammars-v4/tree/master/haskell), and input [pullTasks.hs](https://github.com/antlr/grammars-v4/blob/master/haskell/examples/pullTasks.hs), then produce a listing of tokens. ``` [@0,0:5='double',,1:0] [@1,6:6=' ',,channel=1,1:6] [@2,7:8='::',,1:7] [@3,9:9=' ',,channel=1,1:9] [@4,10:12='Num',,1:10] [@5,13:13=' ',,channel=1,1:13] [@6,14:14='a',,1:14] [@7,15:15=' ',,channel=1,1:15] [@8,16:17='=>',,1:16] [@9,18:18=' ',,channel=1,1:18] [@10,19:19='a',,1:19]...

haskell

This concerns [this code in Java](https://github.com/antlr/grammars-v4/blob/128ebeb55f66061675726ce35e0f47c5c6bfb9d0/php/Java/PhpLexerBase.java#L75) vs [this code in CSharp](https://github.com/antlr/grammars-v4/blob/128ebeb55f66061675726ce35e0f47c5c6bfb9d0/php/CSharp/PhpLexerBase.cs#L83). These codes should not be different, but on sets the token type for the current token, while the other...

See: * [Spec](https://invisiblexml.org/1.0/#grammar) * [Website](https://invisiblexml.org/) * [Example](https://stackoverflow.com/q/73057894/4779853)

new-grammar

There are a number of grammars that are forked, e.g., java/java9, antlr/antlr4, javascript/ecmascript, python/python, sql/plsql, ... These forked grammars can be collapsed using the [transformGrammar.py](https://github.com/antlr/grammars-v4/tree/master/javascript/javascript/Python3) hack. Using this transform, which...

As mentioned in [an SO question](https://stackoverflow.com/questions/72413453), the official grammar for Solidity is in the project's source code ([here](https://github.com/ethereum/solidity/tree/095cc6472834b6807a7f205f859914701476f5fd/docs/grammar)). The grammar in this repo should be replaced with the current version.

solidity