| Summary: | Format source messes up LPG grammar | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Zoltan Ujhelyi <zoltan.ujhelyi> |
| Component: | IMP | Assignee: | Robert M. Fuhrer <rfuhrer> |
| Status: | ASSIGNED --- | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | Macintosh | ||
| OS: | Mac OS X | ||
| Whiteboard: | |||
|
Description
Zoltan Ujhelyi
And it also removes anything between $-s in the grammar - thus unhiding non-terminals and removing list definitions. Hi there, thanks for the bug report! The error of repeating the non-terminal on the rule RHS should be trivial to fix. Can you tell me where necessary spaces got deleted? [Honestly, it's been ages since I used auto-format on LPG, or for that matter, on pretty much anything, including Java. I never seem to like what it produces enough to keep...] I could identify two scenarios where this causes errors originally: one was at the '::=' symbol (but that could be related to the left hand side duplication). The other was at '|' symbols on the right hand side of rules, where if it was written after the previous symbol, the parser considered the '|' as a part of the symbol name - but I couldn't reproduce this using the already cleaned up grammar (I manually fixed the previously messed up grammar). I fixed the repeating the LHS non-terminal on the rule RHS. The fix is in head of SVN trunk. I'll look at the problem with $'s next. I've fixed the problem with loss of macros, and a few other unfortunate bits of breakage. There still seems to be a problem with the %Recover segment - the AST produced doesn't seem to record the symbols, for some reason. Still looking into that. |