ANTLRWorks TestRig stuck at compilation

I recently started using ANTLR and found out about the ANTLRWorks IDE. Although the editor works fine, it seems, however, that when I run the test setup, it gets stuck when compiling the grammar files (or, rather, does nothing with the compiled grammar?), No matter what input I give them. Here is the result I get:

ANTLR Codegen

Arguments: [-o, C: \ Users \\ AppData \ Local \ Temp \ TestRigTask-1395567588803, -lib, C: \ Users \\ Desktop, -no-listener, -no-visitor, C: \ Users \\ Desktop \ Test.g4]

ANTLR Testrig

Compiling grammar files ...

Here is the input I give him to check the problem:

Grammar

grammar Test;

CUP : 'cup';
MUG : 'mug';
TEA : 'tea';
COFFE: 'coffe';

drinker : 'drinking a' holder 'of' liquid;
holder : MUG | CUP;
liquid : TEA | COFFE;

Test file

drinking a mug of coffe

Am I doing something wrong / missing something important?

+4
1

, ANTLRWorks2 JDK, JRE. ANTLRWorks Java, javac, , javac JDK, JRE.

ANTLRWorks JDK, , , --jdkhome <path> ANTLRWorks.

+5

Source: https://habr.com/ru/post/1533042/


All Articles