User`s manual

Local Logic Language Syntax
GFK-1742A Chapter 12 Local Logic Language Syntax 12-19
12
Local Logic Error Messages
Local Logic Build Error Messages
The local logic program build process communicates the build status through the local logic, editor
error log window. In the event an error occurs, the build process reports the error and attempts to
continue the build process.
Error messages generated by the local logic build process fall into three categories; syntax errors,
parse errors, and parse warnings.
Parser error messages have several common elements.
Filename (Line): [Severity] [error message]
Filename
is the filename of the current file being built.
Line
is the line number in the file that the error was detected on.
Severity
describes error severity. Errors prevent a binary creation. Warnings are informational.
Error Message
is a short, general description of the error
Local Logic Syntax Errors
The build process enforces the local logic syntax. If the source program fails to meet this criterion,
the build process reports a syntax error. The error message identifies the error as a syntax error.
The syntactic element type found followed one or more of the syntactic elements the parser was
expecting is contained within the error message. It is common for syntax errors to actually be
reported on a line following the line with the actual error. Missing semi-colons are a typical
example.
Example:
scratch.llp (3): Error :syntax error
actual: IF expecting: ;
In this case, line 2 is actually missing the semicolon. Since the semi-colon may actually follow on
another line, the parser does not report the error until it sees a meaningful syntactic element that
isnt a semi-colon.
Because of their nature, a single syntax error can cause cascading errors. Correcting one syntax
error may eliminate several syntax error messages. To avoid confusion, when debugging Local
Logic programs with syntax errors, correct the first error and rebuild the program to refresh the list
of errors before proceeding.