close Warning: Can't synchronize with repository "(default)" (/var/svn/tolp does not appear to be a Subversion repository.). Look in the Trac log for more information.

Opened 21 years ago

Closed 21 years ago

Last modified 18 years ago

#42 closed defect (fixed)

To compile a file without code

Reported by: rcsoto Owned by: danirus
Priority: low Milestone:
Component: Kernel Version: head
Severity: normal Keywords:
Cc:

Description

When trying a file without code, gives an error.

Example:


FILE : file.tol
PURPOSE : File example


FUNCTIONS

The check syntax return:

"Fin de la expresión inesperado en línea 1 y columna 0:

LINEA

1 >


2 : FILE : file.tol
3 :
PURPOSE : File example
4 :
5 :
6 :
7 :

8 : FUNCTIONS
9 :

10 :

"

I don´t know if it is an error. But it does not seem it.

Change History (3)

comment:1 Changed 21 years ago by danirus

Status: newassigned

comment:2 Changed 21 years ago by danirus

Resolution: fixed
Status: assignedclosed

BFilter removes all comments from the original code and makes some
substitutions, returning a clean code to the parser.
The new behaviour implies that, when BParser receives an empty BText from
BFilter means that there's nothing to analyze, everything were comments.

comment:3 Changed 18 years ago by Víctor de Buen Remiro

bug_file_loc: http://cvs.tol-project.org/viewcvs.cgi/tol_tests/tol/Bugzilla/bug_000042
Note: See TracTickets for help on using tickets.