Steffen Märcker wrote:
> has somebody improved the parser generator's UI? I think it lacks some
> comfort:
> - VW becomes unresponsive for minutes while generating a large parser.
SmaCCGrammarCompiler>>createChanges
self removeOldMethods.
self checkForEmptySymbols.
self checkForUnusedSymbols.
Refactory.SmaCC.SmaCCNode.NextId := 0.
([self compileScanner.
self compileParser] promiseAt: Processor userBackgroundPriority) value
The NextID := 0 makes the generated compiler more like the previous version of it, helping comparison.
Running in a promise block lets the VW UI elsewhere continue to work. However, it loses the notifications about shift/reduce conflicts - you'll need to add code to catch those (see references to SmaCCCompilationNotification).
> - Syntax highlighting would be neat.
> - Code folding would be nice too.
> The last two suggestions are of course only cosmetic ones.
I think the Dolphin version does those. It would be neat if the generated grammar also included a UI for editing, with those two elements provided. (Obviously some extra input would be needed too.) If so, then since SmaCC is made in SmaCC, we would get the same coolness for editing SmaCC grammar definitions!
There are many Eclipse projects offering this kind of thing, e.g. Xtext. I don't know how easily RBCodeHighlighting can be retargeted to an arbitrary grammar. Personally I don't need coloring - I manage fine reading English too without the nouns being a different color from the verbs :-) - but I know users of other languages now expect those as standard features.
Steve
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc