perbuilt Pier image with access control

Lukas Renggli renggli at iam.unibe.ch
Mon Nov 21 16:40:35 MET 2005



>> Thanks, it is really annoying that you have to recompile the  
>> scanner  and parser. Currently I know no other workaround than  
>> recompiling. I  send the problem to a guy here at the university  
>> that is looking for  strange bugs using his implementation of an  
>> omniscent debugger, so  maybe he can find out about the real problem.
>
> anyway, it's quite simple to compile it with the interface... but  
> maybe as a  workaround to wait for a better solution, is it  
> possible to do that manipulation through the install ?  (in a class  
> initialize...or even by writing some lines of code in the  
> workspace...)
> 	
> | parserCompiler |
> parserCompiler := SmaCCGrammarCompiler new.
> parserCompiler
> 	buildScanner:  PRDocumentScanner scannerDefinitionComment  ???
> 	andParser:  PRDocumentParser parserDefinitionComment.      ???
> parserCompiler compileInto: PRDocumentScanner andParser:  
> PRDocumentParser.

Yeah, the only problem here is that if I want to recompile the  
parsers after installing I need to load the Refactoring-Browser and  
SmaCC-Development as prerequisite. Both are pretty big packages that  
are not needed otherwise, however if I can find a solution to that  
problem, that will be the only workaround.

> Would it be something like that (doesn't work here as  
> scanerDefinitonComment doesnt return a string...):

Something like

	(PRDocumentScanner class sourceCodeAt: #scannerDefinitionComment)
		readStream upTo: $"; upTo: $".

and

	(PRDocumentParser class sourceCodeAt: #parserDefinitionComment)
		readStream upTo: $"; upTo: $".

does work in my image.

Cheers,
Lukas

-- 
Lukas Renggli
http://www.lukas-renggli.ch




More information about the SmallWiki mailing list