-
April 7th, 2010, 10:11 AM
#1
Simple own language like java
Hi, people!
The first thing I would say that I'm a beginner in the JavaCC tool.
I'm trying to create a simple language which looks like Java using the JavaCC tool and I want to implement constuctions like "if(...) {} else {}", "while (...) {}", "for (...;...;...) {}" inside my jj but I don't know how I can do it. May be someone has expirience in such problems and can help me? Or I will be glad if someone give me a direction where I can find an answer or solution for my problem.
-
April 7th, 2010, 11:47 PM
#2
Re: Simple own language like java
Have a look at the so called "dragon book" on compiler construction,
http://en.wikipedia.org/wiki/Compile...Second_edition
Last edited by nuzzle; April 7th, 2010 at 11:50 PM.
-
April 12th, 2010, 07:02 AM
#3
Re: Simple own language like java
Thanks a lot! I have implemented own simple language using JJTree. You can find an example in "javacc-5.0/examples/Interpreter" directory.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|