TGen in 2.9a?

Rob Withers rwithers at exobox.com
Thu Sep 28 23:39:12 UTC 2000


Helge Horch wrote:

> At 11:18 28.09.2000 -0400, Mark Guzdial wrote:
> >Has anyone got TGen to work in 2.9a?  I was trying to load up the
> >ray-tracing language GML into 2.9a (using the tgen at
> >http://calliso.swiki.net),
>
> I seem to recall it was <URL:http://callisto.swiki.net> (with an extra t).
>
> >but I kept getting some really severe crashes [...] I backed down to a 2.8
> >image and had no problem.
>
> Hmm, it seems to have been developed with 2.7 (1762/1782) due to ICFP
> contest constraints.  I tried it at the time in a fully updated 2.9a2558
> under Morphic with no problems at all.
>
> After diff'ing T-Gen.4.cs against T-Gen.4.1a.cs, I decided in a hurry on
> this installation procedure:
>

Hi Helge,

I am trying to remember what TGen.4.1a.cs is for.  I've attached a diff.
There are conversion methods for  lf to cr line endings in the
TranslatorGenerator method..  There also looks to be some file name
manipulation changes.  I use TGen.4.cs, then, since I use Linux, I load the
FixConcreteStream changeset.    I am still using the SourceForge VM, and a
base 2.8 image so I'm sorry I can't help.

0.) T-Gen.4.cs    (just out of sheer paranoia)
1.) FixConcreteStream-TGen-nk.1.cs
2.) MorphicInstallTGenButton.cs
3.) GML-RayTracer.3.cs

is what I do...

Somebody sent me a fixes pdf  userGuide (thanks to whomever did that!) which I
will post to the Callisto site as well  (and go for another rev of the tgen
tgz file)

>
> 0.) T-Gen.4.cs    (just out of sheer paranoia)
> 1.) T-Gen.4.1a.cs (which should be okay on its own, but heck)
> 2.) FixConcreteStream-TGen-nk.1.cs
> 3.) MorphicInstallTGenButton.cs
> 4.) GML-RayTracer.3.cs
>
> Subsequently I browsed the class side of GMLObject and picked examples from
> the method comments at random.  Fun!

I'm glad you like it.  Unfortunately we didn't win, and I think that we were
the "three days to render an image and so we eliminated them" entry (see
http://www.cs.cornell.edu/icfp/contest_results.htm).  I tried to render a Go
game image and I quit after 24 hours.

>
> Anyone know where to get the GML source for the Aspirin(tm) and Adrenalin
> examples that are rendered on the Swiki page?
>

I have them at home so I'll post them later tonight.  I thought someone had
asked about them before; it must have been you.  I was broken for a few days
after the contest was over.  ;-)

cheers,
Rob


>
> >maybe I have a black thumb when it comes to Squeak these days...
>
> Time to crank up your karma.  Submit a couple of class comments.  ;)
>
> HTH,
> Helge
-------------- next part --------------
1c1
< 'From Squeak2.7 of 5 January 2000 [latest update: #1762] on 27 August 2000 at 5:54:01 am'!
---
> 'From Squeak2.7 of 5 January 2000 [latest update: #1762] on 27 August 2000 at 7:38:26 pm'!
6399c6399
< !TGenUI methodsFor: 'initialization' stamp: 'rww 8/27/2000 05:33'!
---
> !TGenUI methodsFor: 'initialization' stamp: 'rww 8/27/2000 15:13'!
6407,6408c6407,6408
< 		do: [:each | specName := specName, each].
< 	baseName _ baseName directory fullNameFor: specName.
---
> 		do: [:each | specName := specName, each, '.'].
> 	baseName _ baseName directory fullNameFor: (specName copyFrom: 1 to: (specName size - 1)).
7193c7193
< !LL1Parser methodsFor: 'parsing' stamp: 'tfei 10/29/1999 21:01'!
---
> !LL1Parser methodsFor: 'parsing' stamp: 'rww 8/27/2000 16:57'!
9498c9498
< !TranslatorGenerator methodsFor: 'public access' stamp: 'tfei 11/12/1999 16:33'!
---
> !TranslatorGenerator methodsFor: 'public access' stamp: 'nk 8/27/2000 19:12'!
9509a9510
> 			tokenSpecification replaceAll: Character lf with: Character cr.
9519a9521
> 			grammarSpecification replaceAll: Character lf with: Character cr.
9526a9529
> 			inputText replaceAll: Character lf with: Character cr.


More information about the Squeak-dev mailing list