Add "delle" to the list of articles.

This commit is contained in:
Stefano Sanfilippo 2014-11-29 18:26:25 +01:00
parent 46c7c99967
commit 0a932b3c3b
2 changed files with 3 additions and 3 deletions

View File

@ -85,7 +85,7 @@ CHAR [a-zA-Z_]
"come "("se ")?"fosse" {
return token::ASSIGN;
}
("il"|"lo"|"la"|"l'"|"i"|"gli"|"le"|"un"|"un'"|"una"|"dei") {
("il"|"lo"|"la"|"l'"|"i"|"gli"|"le"|"un"|"un'"|"una"|"dei"|"delle") {
return token::ARTICLE;
}
"più" {

View File

@ -129,8 +129,8 @@ not start with a number (the usual rules, that's it).
A variable might be prefixed with an article to fit a sentence. The
compiler does not check concordance with the following name, but accepts any
article of the Italian language: `il`, `lo`, `la`, `i`, `gli`, `le`, `un`, `una`
`dei`, `l'`, `un'`. For instance, `cappello` and `il cappello` refer to the
same variable.
`dei`, `delle`, `l'`, `un'`. For instance, `cappello` and `il cappello` refer
to the same variable.
Consequently, the articles above cannot be used as variable names.