I need to generate Python code to be more specific IronPyton. I also need to be able to parse the code and load it into AST. I just started looking at some tools. I played with "Oslo" and made decision that it's not the right tool for me. I just looked very briefly at Coco/R and it looks promising.
Does any one used Coco/R?
If you d...
Anyone seen implementation of COCO/R compiler generator ported to PHP?
Thanks.
...
I'm evaluating using Coco/R vs. ANTLR for use in a C# project as part of what's essentially a scriptable mail-merge functionality. To parse the (simple) scripts, I'll need a parser.
I've focussed on Coco/R and ANTLR because both seem fairly mature and well-maintained and capable of generating decent C# parsers.
Neither seem to be tr...
Hi All,
I've got this little COCO/R grammar fragment that roughly mimics the syntax of c-style languages for expressions (only vastly simpler). But for some reason, it refuses to parse a compound expression. Perhaps it's been a long week, or perhaps I'm missing something totally obvious. I've boiled the Expression grammar down as much a...
Hello there,
I am using CocoR to generate a java-like scanner/parser:
I'm having some troubles in creating a EBNF expression to match a codeblock:
I'm assuming a code block is surrounded by two well-known tokens:
<& and &>
example:
public method(int a, int b) <&
various code
&>
If I define a nonterminal symbol
codeblock =...
As the title says, I'm having trouble using Coco/R. When I compile my file, Andromeda.atg, it gives me two errors:
"-- line 1 col 1: "COMPILER" expected"
"-- line 1352 col 5: name does not match grammar name"
I have no idea why this is happening. I tried moving my COMPILER Andromeda line to the top, but the same errors pop up.
Here's my...