Frequently Asked Questions

Q. The debugger does not seem to be working!
Try the following-

  1. Make sure you have enabled ANTLR Studio on the project you wish to debug.
  2. Make sure the 'ANTLR Eclipse Plugin' is uninstalled. If it is not, then first
    disable it from all the projects then close eclipse and remove all its directories.
  3. Look at the generated files and make sure that the parser/lexer/treeparser class extends from
    a class from the antlr.antlrStudio package.
  4. Right click the grammar file and select Build Grammar to rebuild the grammar.
  5. Delete all breakpoints on the grammar file and put them again.
  6. If nothing above works, look at the Error Log for anything suspicious.

Q. How do I upgrade my existing projects using ANTLR Studio 1.0 to 1.1?
When you start eclipse, all projects that are already open are automatically upgraded to ANTLR Studio 1.1.
If some projects are closed, then they wont be upgraded. To upgrade them, open the project, disable and then again
enable ANTLR Studio on them.

Q. I am unable to build grammar files.
Make sure ANTLR Studio is enabled on the project containing the grammar file.


Q. How do I use ANTLR Studio to generate code in other languages like c++ or c#?
To generate code in languages other than java, you will have to write a custom ant build script
to compile the grammar.
Make sure that you dont enable ANTLR Studio on the project otherwise the code will automatically
be generated in Java. Also you wont be able to use the Flux Debugger to debug your grammar files.

Q. How do I use grammar inehritance inside ANTLR Studio?
Grammar inheritance is not supported for this release of ANTLR Studio.
You can probably use a build script to compile your grammar files.
Make sure that you dont enable ANTLR Studio on the project otherwise the code will
be generated automatically without taking grammar inheritance into consideration.

Q.Which version of antlr do you use?
The generated code without debugging enabled is the same as that generated by antlr 2.7.6.
For the redistributable version of antlr, which is attached to your project at runtime,
version 2.7.6.1 is used. The 2.7.6.1 contains just one extra method in the lexer class which was missed
out in the original 2.7.6. release. None of your existing programs will be affected.
To changes from 2.7.6 to 2.7.6.1 , are listed in the antlr_changelist.txt file located in
plugins/AntlrStudio_1.0.0 directory.

Q. Where is the redistributable version of antlr kept?
The redistributable version of antlr is kept in the plugins/AntlrStudio_1.0.0 directory.
It is named as antlr_2.7.6.1.jar and the src is named as antlrsrc.zip.
Both these files are provided like the original antlr without any license, so you can freely distribute them with
your programs.

Q. Where is the generated token types file?
ANTLR Studio adds 2 new filters to the package explorer view-
Token Types files and .smap files. Uncheck these filters to view the appropriate files.

Q. I have a huge grammar file and the editor seems very sluggish while typing.
Go to Window->Preferences->ANTLR Studio and check "Dont show quickfixes and errors while typing".
This should get the typing speed back to normal, although you wont be able to see any quickfixes while typing
and errors/warning will appear only when you save the file.