On Nov 11, 2007 7:40 PM, Oleg Kobchenko <[EMAIL PROTECTED]> wrote: > "The default AST constructed by SableCC matches the > concrete syntax tree (CST). The parser class can be > customized through inheritance to modify the AST as > it is constructed." > But this customization is another flaw: concrete parser > should be dependent on AST and not the other way around.
Could you expand on this point a bit? It seems to me that the AST is an instance of the grammar in question (corresponding to a document) while the parser is more general (corresponding to all documents which the grammar can handle). I understand the value of understanding an algorithm in terms of its data, but I am not quite sure I understand how what you are saying here makes sense. Thanks, -- Raul ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
