Eclipse Xtext Debuging using Antlrworks

Antlrworks can help debug a grammar.

It works on a file (in this case generated by Xtext) with a '.g' extension, this is in the src-gen directory.

antlrworks

Download Antlrworks

I went to:

http://www.antlr3.org/download/

and downloaded the 'antlrworks-1.5.jar' file.

Start Antlrworks

I ran it as follows:

martin@linux-hr12:~> cd antlr
martin@linux-hr12:~/antlr> java -jar antlrworks-1.5.jar

This brings up the following screen:

antlrworks

I clicked on 'Don't Send'

antlrworks

I don't want to create a new grammar but work on an existing one so I clicked cancel when the following wizard came up:

antlrworks

I then opened the '.g' file created by xtext.

antlrworks

 


metadata block
see also:
Correspondence about this page

This site may have errors. Don't use for critical systems.

Copyright (c) 1998-2023 Martin John Baker - All rights reserved - privacy policy.