summaryrefslogtreecommitdiff
path: root/src/compiler/GF/JavaScript/LexJS.x
diff options
context:
space:
mode:
authorhallgren <hallgren@chalmers.se>2013-11-11 16:50:43 +0000
committerhallgren <hallgren@chalmers.se>2013-11-11 16:50:43 +0000
commitb111b476a75577a5b21d1d498975cbb2eeed9324 (patch)
tree07c26d17b01843854dc5d48a10e86d99a1bf8e3b /src/compiler/GF/JavaScript/LexJS.x
parent47e04656fb11c39ec9cbbfd7c860cd992d4855d2 (diff)
Fix Issue 41: "," in context-free rules causes parsing failure
The CF parser in GF.Grammar.CF assigns function names to the rules, but they are not always unique, causing rules to be dropped in the follwing CF->GF conversion. So a pass has been added before the CF->GF conversion, to make sure that function names are unique. A comment says "rules have an amazingly easy parser", but the parser looks like quick hack. It is very sloppy and silently ignores many errors, e.g. - Explicitly given function names should end with '.', but if the do not, the last character in the function name is silently dropped. - Everything following a ';' is silently dropped.
Diffstat (limited to 'src/compiler/GF/JavaScript/LexJS.x')
0 files changed, 0 insertions, 0 deletions