Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


A pascal or delphi syntax checker...

Posted on 2000-03-10
Medium Priority
Last Modified: 2013-11-18
the uni asked me to make a Delphi compiler..( not a compiler... just to check the statments syntax... no output are needed)... so, who can help me with that? am busy with my project, and i cant find time to learn java..?
so plz help me..
am using JDK compiler..
Question by:LoneReck
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3

Accepted Solution

diakov earned 1200 total points
ID: 2607936
Here you can find what you want:
http://www.cocolsoft.com.au/dgram/dgramh.htm (i'm not sure for the source files)

If you want to do i t yourself, check out the following resource for grammars:
for the parser generator (the best one can get) at
You may also want to use the http://www.cs.purdue.edu/jtb/ product that generates even more code for you if you want to build something more than a parser.

I couldn't find Pascal grammar for JavaCC, however, I think you can easily make it yourself using one of the examples.


Expert Comment

ID: 2607954

Oberon is an extension of Pascal, and there is a JavaCC grammar for it, just modify a bit.


Author Comment

ID: 2608219
Well.. can i use JDK to compile the code??
or it can be dont with JCC only??
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Author Comment

ID: 2608220
Well.. can i use JDK to compile the code??
or it can be done with JCC only??

Author Comment

ID: 2608225
sorry,, am a good programmer..
but i know nothing about java cuz i never used it,,, and i have no time...
so... help me with the last quistion..

Expert Comment

ID: 2608427
Sorry for the delay, time zones, etc.

JavaCC takes as input a formal description (line BNF) of a language, called grammar. The it generates compilable (by JDK) code that recognizes text written in the language the grammar describes.

Furthermore, JTB  additionally generates an expression (program) tree builder that helps you automate the semantics implementation for a particular program.

The process is quite common, like yacc and lex for C. One generates the parser, the other, the lexical analysis. You may be need only the parser.

To summarize, you create the input for JavaCC, you use the code generated from JavaCC. If you need to, use JTB for more sophisticated programming.


Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Having just graduated from college and entered the workforce, I don’t find myself always using the tools and programs I grew accustomed to over the past four years. However, there is one program I continually find myself reverting back to…R.   So …
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question