Appendix A: Keywords
The following list contains keywords that are reserved for current use by the Pint language. As such, they cannot be used as identifiers. Identifiers are names of macros, variables, tuple fields, modules, or types.
as
- perform primitive casting or rename items inuse
statementsbool
- the Boolean typeb256
- the 256-bit hash typecond
- select between multiple expressions based on some conditionsconst
-constraint
- define a Boolean constraint that a proposed solution must satisfyelse
- fallback forif
andcond
conditionalsenum
- define an enumerationexists
- existential quantification: checks whether a statements istrue
for at least one element in a domain.false
-forall
- universal quantification: checks whether a statement istrue
for all elements in a domainif
- branch based on the result of a conditional expressionin
- checks if an element belongs to a range or to an arrayint
- basic integer typeinterface
- declare an external interfacelet
- declare a local variablemacro
- define a macromatch
- match a value to patternsmut
- allows a storage location to be mutablenil
- an empty storage valuepredicate
- define a predicateself
- used inuse
statementsstorage
- declare a storage blocktrue
-type
- define a new typeunion
- declare a new unionuse
- bring symbols into scopewhere
- denote clauses that constraint generator indices