Questions tagged [grun]

6 questions
5
votes
3 answers

Running ANTLR grun (TestRig) on grammar in a package.

I have all the generated java files in a single directory after ANTLR execution, so I used some options to generate a separate directory and namespace to be stored and compiled to store all the generated files. This is the grammar file: grammar…
prosseek
  • 182,215
  • 215
  • 566
  • 871
3
votes
4 answers

ANTLR4 TestRig (grun) throws java.lang.NoClassDefFoundError exception

I'm trying to learn ANTLR 4, and I'm following the examples given in The Definitive ANTLR 4 Reference. Sadly I'm stuck at the first example. System: Windows 10 (1703) Java 8, update 151 ANTLR 4, v4.7 My %CLASSPATH% is set as a system variable…
DoTheGenes
  • 197
  • 2
  • 4
  • 22
2
votes
2 answers

Can't parse COBOL source code with Antlr4

I'm learning on how to use Antlr4 to parse COBOL source codes. Currently, I'm following the steps, exactly as demonstrated by Enam Biswas in his Youtube video. Basically, I've downloaded antlr-4.7.1-complete.jar and placed it in C:\Javalib. Yes,…
user3160596
  • 85
  • 1
  • 1
  • 5
0
votes
1 answer

GRUN for Antlr4: How to use?

For grammar: grammar qwe; query : COLUMN OPERATOR value EOF ; COLUMN : [a-z_]+ ; OPERATOR : ('='|'>'|'<') ; SCALAR : [a-z_]+ ; value : SCALAR ; WS : [ \t\r\n]+ -> skip ; there are identical rules COLUMN…
0
votes
1 answer

antlr4 matching of choice expression

Im writing chrome DEPS file parser. How to match one of either following grammar rule defintion of rightexpr. My grammar is like the following one: grammar Depsgrammar; prog: expr+ EOF; expr: varline ; varline: ID EQ rightexpr …
user3453753
  • 357
  • 4
  • 15
0
votes
0 answers

Grunt Nodemon failing while initializing

I am trying to start grunt when ever there is a js change and have following code: module.exports = function (grunt) { grunt.initConfig({ nodemon: { all: { script: "server.js", options: { …
Simsons
  • 12,295
  • 42
  • 153
  • 269