javacc problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nazaninzahra
    New Member
    • Sep 2007
    • 1

    #1

    javacc problem

    hi
    I want to now when the compiler(which i have written with javacc) discover a semantic error, how it can report the line number where error occurred.
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by nazaninzahra
    hi
    I want to now when the compiler(which i have written with javacc) discover a semantic error, how it can report the line number where error occurred.
    Depends on how you have written your compiler. Have you read each line of the source file into a Collection first?

    Comment

    Working...