• Contact
  • Products
    • ANTLR Studio
    • Virtual Ant
  • Buy
  • Home
  • Videos
  • Screenshots
  • Features
  • Articles
  • Community
  • Faq
  • How do I upgrade my existing projects using ANTLR Studio 1.0 to 1.1?
  • ANTLR Studio throws an exception and doesnt start up.
  • How do i know which version of the jvm Eclipse is using?
  • How do i start Eclipse with a specific jvm?
  • The debugger does not seem to be working
  • I am unable to build grammar files.
  • How do I use ANTLR Studio to generate code in other languages like c++ or c#?
  • How do I use grammar inehritance inside ANTLR Studio?
  • Which version of antlr do you use?
  • Where is the redistributable version of antlr kept?
  • Where is the generated token types file?
  • I have a huge grammar file and the editor seems very sluggish while typing.
Q. How do I upgrade my existing projects using ANTLR Studio 1.0 to 1.1?
Although ANTLR Studio will automatically update all open projects in your workspace to use the new antlr 2.7.6 lib,
it is highly recommended that you 'Disable' and then again 'Enable' ANTLR Studio on each project to properly upgrade it.
Q. ANTLR Studio throws an exception and doesnt start up.
Ensure the following -
  1. Jvm 1.5 or higher is installed and eclipse is using it.
  2. You have download a license file and placed it in the appropriate folder.
  3. You have not manually edited the license file.
Q. How do i know which version of the jvm eclipse is using?
Go to Help->About Eclipse SDK->Configuration Details and look for the java.vm.version string.
Q. How do i start Eclipse with a specific jvm?
Start it with the following parameters -
eclipse.exe -vm /path_to/java_vm_5
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. Right-click on project in package explorer, go to Properties>Antlr Studio and make sure 'Enable Debugging of grammar files' is checked.
  3. Make sure no other plugin for ANTLR, other than Antlr Studio, is installed.
  4. Look at the generated files and make sure that the parser/lexer/treeparser class extends from
    a class from the antlr.antlrStudio package.
  5. Right click the grammar file and select Build Grammar to rebuild the grammar.
  6. Delete all breakpoints on the grammar file and put them again.
  7. If nothing above works, look at the Error Log for anything suspicious.
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 Fluid Debugger to debug your grammar files.
Q. How do I use grammar inehritance inside ANTLR Studio?
Although Grammar inheritance is not supported for this release of ANTLR Studio,
you can 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.
To see a full list of changes from 2.7.6 to 2.7.6.1 , look at the antlr_changelist.txt file located in
plugins/AntlrStudio_1.1.0 directory.
Q. Where is the redistributable version of antlr kept?
The redistributable version of antlr is kept in the plugins/AntlrStudio_1.1.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. your programs.
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.

Copyright © 2005-07 Placid Systems. All rights reserved.Terms of Use | About Us