Hi,
On 05/11/2016 07:45 AM, Richard Hainsworth wrote:
I have the following in a grammar
rule TOP{ ^ + $ };
rule statement { '='
| { { self.panic($/, "Declaration syntax
incorrect") } }
};
rule endvalue { '(' ~ ')'
Hi Richard,
Not a complete answer to your question;
just an observation about your grammar:
> rule TOP{ ^ + $ };
>
> rule statement { '='
> | { { self.panic($/, "Declaration syntax incorrect") } }
> };
>
> rule endvalue { '(' ~ ')'
>
I have the following in a grammar
rule TOP{ ^ + $ };
rule statement { '='
| { { self.panic($/, "Declaration syntax
incorrect") } }
};
rule endvalue { '(' ~ ')'
| { self.panic($/, "Invalid declaration.") }