Add "delle" to the list of articles.
This commit is contained in:
parent
46c7c99967
commit
0a932b3c3b
|
@ -85,7 +85,7 @@ CHAR [a-zA-Z_]
|
||||||
"come "("se ")?"fosse" {
|
"come "("se ")?"fosse" {
|
||||||
return token::ASSIGN;
|
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;
|
return token::ARTICLE;
|
||||||
}
|
}
|
||||||
"più" {
|
"più" {
|
||||||
|
|
|
@ -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
|
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
|
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`
|
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
|
`dei`, `delle`, `l'`, `un'`. For instance, `cappello` and `il cappello` refer
|
||||||
same variable.
|
to the same variable.
|
||||||
|
|
||||||
Consequently, the articles above cannot be used as variable names.
|
Consequently, the articles above cannot be used as variable names.
|
||||||
|
|
||||||
|
|
Reference in New Issue
Block a user