- 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.
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.
it is highly recommended that you 'Disable' and then again 'Enable' ANTLR Studio on each project to properly upgrade it.
Ensure the following -
- Jvm 1.5 or higher is installed and eclipse is using it.
- You have download a license file and placed it in the appropriate folder.
- You have not manually edited the license file.
Go to Help->About Eclipse SDK->Configuration Details and look for the java.vm.version
string.
Start it with the following parameters -
eclipse.exe -vm /path_to/java_vm_5
eclipse.exe -vm /path_to/java_vm_5
Try the following-
- Make sure you have enabled ANTLR Studio on the project you wish to debug.
- Right-click on project in package explorer, go to Properties>Antlr Studio and make sure 'Enable Debugging of grammar files' is checked.
- Make sure no other plugin for ANTLR, other than Antlr Studio, is installed.
-
Look at the generated files and make sure that the parser/lexer/treeparser
class extends from
a class from the antlr.antlrStudio package. - Right click the grammar file and select Build Grammar to rebuild the grammar.
- Delete all breakpoints on the grammar file and put them again.
- If nothing above works, look at the Error Log for anything suspicious.
Make sure ANTLR Studio is enabled on the project containing the grammar file.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Token Types files and .smap files. Uncheck these filters to view the appropriate files. your programs.
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.
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.