Accept "prematura" as alternate spelling of "brematura".

Solves #2.
This commit is contained in:
Stefano Sanfilippo 2014-11-29 18:30:04 +01:00
parent 0a932b3c3b
commit 75b5d6c40b
2 changed files with 4 additions and 2 deletions

View File

@ -139,7 +139,7 @@ CHAR [a-zA-Z_]
"stuzzica" { "stuzzica" {
return token::LOOP_BEGIN; return token::LOOP_BEGIN;
} }
"e brematura anche, se" { "e "("b"|"p")"rematura anche, se" {
return token::LOOP_CONDITION; return token::LOOP_CONDITION;
} }
"che cos'è" { "che cos'è" {
@ -166,7 +166,7 @@ CHAR [a-zA-Z_]
"," { "," {
return token::COMMA; return token::COMMA;
} }
"brematurata la supercazzola" { ("b"|"p")"rematurata la supercazzola" {
return token::FUNCALL; return token::FUNCALL;
} }
"o scherziamo"("?")? { "o scherziamo"("?")? {

View File

@ -205,6 +205,8 @@ maps to:
antani = antani - 1; antani = antani - 1;
} while (antani > 0); } while (antani > 0);
`brematura` might be replaced by its alternate form `prematura`
Branch Branch
------ ------