CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2010
    Posts
    2

    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.

  2. #2
    Join Date
    May 2009
    Posts
    2,413

    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.

  3. #3
    Join Date
    Apr 2010
    Posts
    2

    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
  •  





Click Here to Expand Forum to Full Width

Featured