From 75b5d6c40bb7bd883b89c192b0bfc6f43b48552d Mon Sep 17 00:00:00 2001 From: Stefano Sanfilippo Date: Sat, 29 Nov 2014 18:30:04 +0100 Subject: [PATCH] Accept "prematura" as alternate spelling of "brematura". Solves #2. --- Monicelli.lpp | 4 ++-- README.md | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Monicelli.lpp b/Monicelli.lpp index 5efc52f..f750fa3 100644 --- a/Monicelli.lpp +++ b/Monicelli.lpp @@ -139,7 +139,7 @@ CHAR [a-zA-Z_] "stuzzica" { return token::LOOP_BEGIN; } -"e brematura anche, se" { +"e "("b"|"p")"rematura anche, se" { return token::LOOP_CONDITION; } "che cos'รจ" { @@ -166,7 +166,7 @@ CHAR [a-zA-Z_] "," { return token::COMMA; } -"brematurata la supercazzola" { +("b"|"p")"rematurata la supercazzola" { return token::FUNCALL; } "o scherziamo"("?")? { diff --git a/README.md b/README.md index 726e7f8..5cf068b 100644 --- a/README.md +++ b/README.md @@ -205,6 +205,8 @@ maps to: antani = antani - 1; } while (antani > 0); +`brematura` might be replaced by its alternate form `prematura` + Branch ------