[BUG] VWNC7.4 SmaCC Development Parcel Broken?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

[BUG] VWNC7.4 SmaCC Development Parcel Broken?

Wolfgang Mayer
There seems to be a bug in the SmaCC parcels delivered with the
VW7.4 distribution. For some methods, the compiled code does not
properly reflect the source.

To reproduce, take a virgin visualnc.im and do:
Load SmaCCDevelopmentUI, SmaCCExampleParsers.
Open SmaCC Parser Generator
Load JavaScanner and JavaParser example definitions
Press "compile LALR"
-> MNU (because scannerDefinition in SmaCCGrammar is nil)

Some searching revealed that the compiled code in
SmaCCScanner>>reduceActionForFile1: and SmaCCEdeg>>to:on: does not match
the source. The compiled code refers to/assigns different
variables than the source does.

Recompiling seems to avoid these problems:

SmaCCScannerParser selectors do: [:sel | SmaCCScannerParser recompile: sel].
SmaCCEdge selectors do: [:sel | SmaCCEdge recompile: sel].


I wonder if my VWNC 7.4 installation is flawed?
[installed from CD, Ubuntu Linux, kernel 2.6.15-12-686, glibc 2.3.6]
The MD5 hash of the SmaCC parcels/visualnc.im are:
dafa051040b9e67fb5d6cc99dd3b37a1  SmaCC Development.pcl
c3da96689f722ee3cd7ada8e7540a8cc  SmaCC Development.pst
c9159789149f567d4f009fe9344479f4  SmaCC Development UI.pcl
68f6f967b48bec7e4a863391da2ddffa  SmaCC Development UI.pst
e60e3213bdb01367f5ea0a806134b31c  SmaCC Example Parsers.pcl
0b9f189e4fbb9dff0b47bc619bff7cf1  SmaCC Example Parsers.pst
3f56350a29f52920ef4f47e1cecf009c  SmaCC Runtime.pcl
b48aa279109f68c58d1ce3bd54530f09  SmaCC Runtime.pst
3a3925ae8b14ed20304a5c955dd09566  SmaCC Tests.pcl
914cf659bb874bf5db61ecf971f434ed  SmaCC Tests.pst
a2354e10e765f5c33bc3218b0c51616e  visualnc.im


- Wolfgang

Reply | Threaded
Open this post in threaded view
|

Re: [BUG] VWNC7.4 SmaCC Development Parcel Broken?

John Brant
Wolfgang Mayer wrote:

> There seems to be a bug in the SmaCC parcels delivered with the
> VW7.4 distribution. For some methods, the compiled code does not
> properly reflect the source.
>
> To reproduce, take a virgin visualnc.im and do:
> Load SmaCCDevelopmentUI, SmaCCExampleParsers.
> Open SmaCC Parser Generator
> Load JavaScanner and JavaParser example definitions
> Press "compile LALR"
> -> MNU (because scannerDefinition in SmaCCGrammar is nil)

I don't know what the 7.4 CD has, but the latest released version of
SmaCC can be download from http://www.refactory.com/Software/SmaCC/.


John Brant

Reply | Threaded
Open this post in threaded view
|

Re: [BUG] VWNC7.4 SmaCC Development Parcel Broken?

Alan Knight-2
At 11:12 AM 1/31/2006, John Brant wrote:

>Wolfgang Mayer wrote:
>> There seems to be a bug in the SmaCC parcels delivered with the
>> VW7.4 distribution. For some methods, the compiled code does not
>> properly reflect the source.
>>
>> To reproduce, take a virgin visualnc.im and do:
>> Load SmaCCDevelopmentUI, SmaCCExampleParsers.
>> Open SmaCC Parser Generator
>> Load JavaScanner and JavaParser example definitions
>> Press "compile LALR"
>> -> MNU (because scannerDefinition in SmaCCGrammar is nil)
>
>I don't know what the 7.4 CD has, but the latest released version of
>SmaCC can be download from http://www.refactory.com/Software/SmaCC/.

It should be the same version, that of March 25, 2004.
--
Alan Knight [|], Cincom Smalltalk Development
[hidden email]
[hidden email]
http://www.cincom.com/smalltalk

"The Static Typing Philosophy: Make it fast. Make it right. Make it run." - Niall Ross

Reply | Threaded
Open this post in threaded view
|

Re: [BUG] VWNC7.4 SmaCC Development Parcel Broken?

Andreas Timmermann
In reply to this post by John Brant
John Brant wrote:

> I don't know what the 7.4 CD has, but the latest released version of
> SmaCC can be download from http://www.refactory.com/Software/SmaCC/.

John,

as the author of SmaCC, would you mind publishing the current version to
the public store?  I know i have been confused in the past about where
to find the correct version.

Andreas

Reply | Threaded
Open this post in threaded view
|

Re: [BUG] VWNC7.4 SmaCC Development Parcel Broken?

Holger Kleinsorgen-4
In reply to this post by Wolfgang Mayer
> There seems to be a bug in the SmaCC parcels delivered with the
> VW7.4 distribution. For some methods, the compiled code does not
> properly reflect the source.
>
> To reproduce, take a virgin visualnc.im and do:
> Load SmaCCDevelopmentUI, SmaCCExampleParsers.
> Open SmaCC Parser Generator
> Load JavaScanner and JavaParser example definitions
> Press "compile LALR"
> -> MNU (because scannerDefinition in SmaCCGrammar is nil)


FYI: The SmaCC parcels shipped with 7.4.1 are broken, too.

Regards,
Holger