You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While programming a parser for the Tamarin theory files, I came across some problems in the Syntax Description chapter of the manual where the grammar seems different from what Tamarin could parse :
In the rule lemma, proof_skeleton should probably be optional
The grammar says that the list of facts between brackets must be non-empty but in Tamarin it is possible to have rules without facts
No description of hexcolor : (done in Add hexcolor to syntax description #105 ✅) hexcolor which is used in the rule rule_attr is not defined explicitly in EBNF style.
The manual only says A color is represented as a triplet of 8 bit hexadecimal values optionally preceded by '#'
but after some testing I found out that Tamarin seems to accept some files where hexcolor is between simple quotes,
making all #ffffff, #FFFFFF, 'ffffff, 'FFFFFF', '#ffffff' and '#FFFFFF' valid syntaxes.
Maybe consider adding something like this to the manual
hexcolor:="'" ["#"] hex"'"| ["#"] hex
multterm is used instead of tupleterm in nary_app
No description of preprocessor directives :
Tamarin has some preprocessing capabilities (support for #ifdef, #else, #endif, #include) but those are not present in the grammar
No description of predicates :
The syntax description for predicates and _restrict() is also not present in the grammar
There are some missing built-in names (eg. locations-report)
The text was updated successfully, but these errors were encountered:
Hi, thanks for this -- you are right, the grammar isn't completely accurate, and we want to update it in the near future. Your observations are very helpful. Do let us know if you spot more differences!
While programming a parser for the Tamarin theory files, I came across some problems in the Syntax Description chapter of the manual where the grammar seems different from what Tamarin could parse :
In the rule
lemma
,proof_skeleton
should probably be optionalThe grammar says that the list of facts between brackets must be non-empty but in Tamarin it is possible to have rules without facts
Is probably something like
Or
facts
could be rewritten asNo description of
hexcolor
: (done in Add hexcolor to syntax description #105 ✅)hexcolor
which is used in the rulerule_attr
is not defined explicitly in EBNF style.The manual only says A color is represented as a triplet of 8 bit hexadecimal values optionally preceded by '#'
but after some testing I found out that Tamarin seems to accept some files where
hexcolor
is between simple quotes,making all
#ffffff
,#FFFFFF
,'ffffff
,'FFFFFF'
,'#ffffff'
and'#FFFFFF'
valid syntaxes.Maybe consider adding something like this to the manual
multterm
is used instead oftupleterm
innary_app
No description of preprocessor directives :
Tamarin has some preprocessing capabilities (support for
#ifdef
,#else
,#endif
,#include
) but those are not present in the grammarNo description of predicates :
The syntax description for predicates and
_restrict()
is also not present in the grammarThere are some missing built-in names (eg.
locations-report
)The text was updated successfully, but these errors were encountered: