File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Parse and syntax errors Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Parse and syntax errors" Watch "Parse and syntax errors" New topic

Parse and syntax errors

Sasha Hernandez

Joined: Oct 14, 2003
Posts: 21
What is the difference between a parse error and a syntax error?
Igor Ko
Ranch Hand

Joined: Jun 24, 2002
Posts: 90
At compilation:
1. programm divide to lexical units,
2. and then from the units, build (and check) grammar structure.
3. .....
So I think "parse error" - error during phase 1,
" syntax error" - error during phase 2.
[ March 15, 2004: Message edited by: Igor Ko ]
I agree. Here's the link:
subject: Parse and syntax errors
It's not a secret anymore!