Book a Demo

Author Topic: Parsing Problems  (Read 2191 times)

casEmp01

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Parsing Problems
« on: February 14, 2006, 05:11:07 am »
Hi,

I tryed to parse a Delphi-File but a parsing-Error occured due to an unexpected Symbol {.

The curly brace is very often used in our Delphi Code.

So my question is: Is this a bug or can I manage this somewhere (perhaps in any settings)? ???

Thanks for helping me.


jnavr

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Parsing Problems
« Reply #1 on: February 14, 2006, 06:53:16 am »
Hi,
I experienced similar errors while importing Delphi code with curly braces (posted just today in General Board). As a workaround, try to add // on the affected lines wherever possible.

I have already reported this problem to Sparx as a bug.

Some examples of code that lead to parse errors:

{$IFDEF MGR}
{$DEFINE NOMACRO}
//parse error:
{$ENDIF}

//parse error:
{$MINENUMSIZE 4}

//parse error, very strange:
{ord()}

//parse error:
const ver = {$I ver.pas};
jnavr