OK, this does the parsing. Yet, when I try to load, I get an exception:
rascal>loadheap(inputheaps); project://Launchbury/src/HeapLoader.rsc:8,56: IllegalArgument(appl(prod(lex("Ident"),[\char-class([range(65,90),range(97,122)]),conditional(\iter-star(\char-class([range(48,57),range(65,90),range(97,122)])),{\not-follow(\char-class([range(48,57),range(65,90),range(97,122)]))})],{}),[char(71),appl(regular(\iter-star(\char-class([range(48,57),range(65,90),range(97,122)]))),[])[@loc=|file:///home/hossein/Documents/Rascal/TeachMyself/Launchbury/inputheaps.launchburry|(6,0,<1,6>,<1,6>)]])[@loc=|file:///home/hossein/Documents/Rascal/TeachMyself/Launchbury/inputheaps.launchburry|(5,1,<1,5>,<1,6>)],"Missing lexical constructor") stacktrace: somewhere in: public org.eclipse.imp.pdb.facts.IValue org.rascalmpl.library.ParseTree.implode(org.eclipse.imp.pdb.facts.IConstructor,org.eclipse.imp.pdb.facts.IConstructor) somewhere in: implode somewhere in: load_heap somewhere in: $shell$
Hossein (Jan 08)editrascal>loadheap(inputheaps); project://Launchbury/src/HeapLoader.rsc:8,56: IllegalArgument(appl(prod(lex("Ident"),[\char-class([range(65,90),range(97,122)]),conditional(\iter-star(\char-class([range(48,57),range(65,90),range(97,122)])),{\not-follow(\char-class([range(48,57),range(65,90),range(97,122)]))})],{}),[char(71),appl(regular(\iter-star(\char-class([range(48,57),range(65,90),range(97,122)]))),[])[@loc=|file:///home/hossein/Documents/Rascal/TeachMyself/Launchbury/inputheaps.launchburry|(6,0,<1,6>,<1,6>)]])[@loc=|file:///home/hossein/Documents/Rascal/TeachMyself/Launchbury/inputheaps.launchburry|(5,1,<1,5>,<1,6>)],"Missing lexical constructor") stacktrace: somewhere in: public org.eclipse.imp.pdb.facts.IValue org.rascalmpl.library.ParseTree.implode(org.eclipse.imp.pdb.facts.IConstructor,org.eclipse.imp.pdb.facts.IConstructor) somewhere in: implode somewhere in: load_heap somewhere in: $shell$
Hossein (Jan 08)editHi Hossein, this definitely looks confusing. Could you start another thread? It looks like a message from the implode function. Also, while you're at it, could you flag the current answers when/if you are happy with them? Cheers!
JurgenVinju (Jan 30)edit
Hi Hossein, I apologize for so rudely removing all the answers, but this discussion needed some redesign to be understandable for others. We should definitely not use the answers to discuss. We can always edit an original question to clarify and use the comments to ask for clarification. Thanks!
JurgenVinju (Jan 05)editAnd thanks for the great questions!
JurgenVinju (Jan 05)editHi Jurgen. No problem with the removal. I didn't find that rude. In addition to learning Rascal itself, here, I am after all learning the proper etiquette of this forum too. :) I wish there was some automatic notification about these changes as well as other placing comments on one's post.
Hossein (Jan 08)edit