s1s0 / toped

Cross platform, open source IC layout editor
http://www.toped.org.uk/
GNU General Public License v2.0
15 stars 8 forks source link

TELL: syntax errors in code-less files and EOF in comment #130

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

files (bug2.tll) without code are ending up with errors like
// <= line 1: col 10: syntax error, unexpected $end

to test try : "toped bug2.tll"

this error message especially occurs if you try include the same file (which 
have to contain the preprocessor commands #ifndef .. #endif as done usually in 
header files) at least twice. In the second time the preprocessor commands take 
effect and let the file be virtually empty.

files (bug3.tll) with the eof immediatly after a comment resulting in  
// <= line 6: col 0: syntax error, unexpected '/'

for test: "toped bug3.tll"

Original issue reported on code.google.com by analogc...@gmx.net on 14 Jan 2012 at 8:40

Attachments:

GoogleCodeExporter commented 9 years ago
Should be fixed in r2049. 

Please check and close the issue.

Original comment by krustev....@gmail.com on 14 Jan 2012 at 6:30

GoogleCodeExporter commented 9 years ago
Just for the record...
If a C comment (/*) was not closed before the end of the file - it will put the 
parser in an infinite loop. This was fixed too in the revision above. Now it 
will be silently thrown away... although an error message will be more 
appropriate. Might cause troubles in the future.

Original comment by krustev....@gmail.com on 14 Jan 2012 at 6:39

GoogleCodeExporter commented 9 years ago

Original comment by analogc...@gmx.net on 14 Jan 2012 at 7:40

GoogleCodeExporter commented 9 years ago

Original comment by krustev....@gmail.com on 1 Apr 2012 at 12:21