Building parse tree with ANTLR and Java

Hello I need some help regarding building a simple parse tree with antlr and java .
I have tried to work with powershell to compile and run the grammar file ( which is the
pascal.g4 file ) and I was hoping to generate some java files out of it , however at times when I tried to
run it using the command " .\antlr.bat -package pdl -o pdl .\pascal.g4 " I get a message on the powershell
stating " The system cannot find the file specified " .

I think the command I typed in might be wrong but anyway I have got the grammar file and I have got the
.bat files ( grun.bat , java.bat & javac.bat ) and the antlr-4.5-complete.jar file ,
I think these are basically all the files you need to build the parse tree .

As for the folder location where all these files are located is C:\Users\Lenovo\Documents\test2
I have looked at some examples from others however I really now cannot go any further , can anybody please
help me out here to build this .

Thank you

( I have also provided an image of all the files that are in that folder . )

files picture.jpg

1 answer

1 accepted

0 votes
Accepted answer

Please explain what this has to do with an Atlassian product?

Well I saw this page 

which was talking about antlr , so I thought this would be a good place to ask a question regarding this topic .

I'm not quite sure why you'd pick a word out of a url or off the "powered by" link at the bottom of a page like that - surely it would make a lot more sense to at least start the search with "antlr"? This community is friendly and extremely helpful (the reason I post is because I've got so much from the people here, I feel I ought to give something back), and you might well get a good answer. But, we're Atlassian users, not Antlr experts (well, some of us might be both). I think you will probably get a faster and better answer if you asked in an Antlr forum

Thank you Nic Brough , I thought since that url  had something to do with this website I thought I could post my question here to get some answers , I guess I just misunderstood this website , but anyway thank you for your help .

I understand, it's not obvious that a link to "help with software powering this site" is not the same as "help with what we're talking about here". People do land here from all sorts of places that use Atlassian stuff for their issue tracking and documentation. (Mojang for example, seem to be particularly guilty of pointing their users here instead of better places for help with Minecraft) It's not that we don't want to help, it's just more likely that you'll get more/better/faster help in forums that are focussed on the right thing!

Suggest an answer

Log in or Sign up to answer
Community showcase
Published yesterday in Feedback & Announcements

How do you analyze GC logs, thread dumps and head dumps?

Hi awesome community!  In this article, I would like to describe the one of the toolset (service) for the analyze some problems on different Java-based instances, of course, as Atlassian admini...

74 views 0 6
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you