[Kst] Sharing the scanner...

Andrew Walker arwalker at sumusltd.com
Fri Apr 2 22:51:32 CEST 2004

Hi George,

The merging of the scanners doesn't work overly well
due to the presence of yylval. Running an evaluation
in the exparse ends up settings the value for yylval
instead of exlval. The exscan.l was built using the
-P option to avoid this issue.

In short I don't think we can share scanners. Also,
I would prefer to keep these two expressions parsers
seperate to some extent as the event monitor is
necessarily going to become more complex, in ways
that the existing equation parser does not need to be.




-----Original Message-----
Message: 5
Date: Thu,  1 Apr 2004 05:36:17 +0200 (CEST)
From: George Staikos <staikos at kde.org>
Subject: [Kst] kdeextragear-2/kst/kst [POSSIBLY UNSAFE]
To: kde-cvs at kde.org
Cc: kst at kde.org
Message-ID: <20040401033617.B51F999CD at office.kde.org>
Content-Type: Text/Plain;  charset="UTF-8"

CVS commit by staikos: 

share the scanner between the two parsers

  M +2 -0      Makefile.am   1.82
  M +78 -67    eparse.c   1.4
  M +14 -5     eparse.h   1.2
  M +4 -0      eparse.y   1.4
  M +106 -66   escan.c   1.4
  M +16 -0     escan.l   1.4
  M +558 -755  exparse.c   1.2 [POSSIBLY UNSAFE: printf]
  M +18 -27    exparse.h   1.2
  M +29 -29    exparse.y   1.3
  R            exscan.l   1.1

More information about the Kst mailing list