Skip to main content
Advice
0 votes
2 replies
54 views

Was anyone able to use antlr-ng successfully with CMake to automate C++ target builds? Is it possible at all? There is no information regarding this topic on www.antlr-ng.org, despite the claims to ...
Sergei Katkovsky's user avatar
0 votes
2 answers
79 views

Given the following grammar snippet: tag : ID #TagID | <what to enter here> #TokenTagID ; TOKENID : DOLLARDOLLAR ID DOLLARDOLLAR ; DOLLARDOLLAR :...
XBond's user avatar
  • 250
0 votes
0 answers
45 views

I'm trying to create a new markup language for manuscripts that supports inline notes and other directives. For example, here would be a simple "chapter": // Origins section demonstrating ...
billmill's user avatar
  • 359
1 vote
1 answer
51 views

I'm currently trying to parse a custom configuration format using ANTLR4. Here is what the input may look like (in reality it's a lot more technical, but I had to change it for SO bc I want to keep my ...
Haikun's user avatar
  • 11
1 vote
1 answer
85 views

I’m working on a custom Javadoc lexer in ANTLR 4, and I’m trying to handle special mode switching when I reach the start of a line. I have a simplified example like this: mode START_OF_LINE; ...
mohamed mahfouz's user avatar
1 vote
2 answers
67 views

I'm new to antlr4 and I was trying to create the Postgres parser for which I was using the grammar files and. I followed the below steps. Please note all the files are used from master branch: https://...
Ramco's user avatar
  • 39
1 vote
1 answer
78 views

I'm trying to create a grammar which allows certain expressions only as part of an expression and not at the very beginning of an expression statement. In the grammar below those certain expressions ...
Descolada's user avatar
0 votes
1 answer
58 views

Let's assume I have a given ANTLR parser assembly with many Parser and Lexer classes contained within. Is there a programmatic way to determine which of the lexer classes a given parser class ...
WiredWiz's user avatar
  • 690
0 votes
0 answers
38 views

I'm using ANTLR4 in my build.gradle, added as dependencies { ... antlr4 group: 'org.antlr', name: 'antlr4', version: '4.13.2' // other dependencies like config1 group: 'org.ow2.asm', ...
Florin Rotaru's user avatar
0 votes
0 answers
77 views

This ANTLR4 grammar program : elems* EOF ; elems : stmt EOL | WS | EOL ; stmt : expr | ifStmt | block ; tryStmt : TRY EOL* stmt elseProd ; ...
Descolada's user avatar
0 votes
1 answer
75 views

when there is no separation between fractions, and the lexer merges it all into one token → unknown to the FRACTION token: 2|1+4|15|2-18|5 line 1:11 no viable alternative at input '2|1+4|15|2-18|5' 2|...
Saruman's user avatar
1 vote
1 answer
48 views

Suppose I have a simple grammar which recognizes lower-case words. Among the words I have some reserved words that I need to address differently. grammar test; prog: Reserved | Identifier; Reserved: ...
Boris's user avatar
  • 1,489
2 votes
1 answer
73 views

I am still learning to work with ANTLR4 to reimplement a grammar for a language I am familiar with. I have been using lab.antlr.org to help with debugging. I have the following grammar defined: ...
lostone's user avatar
  • 23
0 votes
1 answer
111 views

I am trying to write an ANTLR4 grammar for the .asl file format (LiveSplit Autosplitting Language). It is a script format with one custom block (state) and several action blocks (startup, init, etc.) ...
Ero's user avatar
  • 111
0 votes
0 answers
35 views

I have an antlr grammer for cypher queries and ran into the following invalid case: MATCH (u:person) where (u.firstName = 'foo' RETURN u.id org.cytosm.common.Cypher2SqlException: Syntax error: line 1:...
benleis's user avatar
  • 11

15 30 50 per page
1
2 3 4 5
288