summaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorAlasdair Armstrong2018-12-06 17:16:06 +0000
committerAlasdair Armstrong2018-12-06 17:28:33 +0000
commit25ab845211e3df24386a0573b517a01dab879b03 (patch)
treeab91f432f56d4e8e2a2a9f46fed7cbb4c63e5b62 /editors
parent272d9565ef7f48baa0982a291c7fde8497ab0cd9 (diff)
Desugar constraints from atyp rather than n_constraint
Previously the valid constraints had to be carefully restricted to avoid parser ambiguities between n_constraint and atyp. With the initial check refactored, we can now parse constraints into atyp using ATyp_app for the operators, and changing ATyp_constant into a more general ATyp_lit for true and false. Logically this new structure is more uniform, as atyp is now the parse representation for all Bool-kinded things (constraints), Type-kinded things (regular types), and Int-kinded things (n-expressions), and initial_check.ml now splits all three into n_constraint, typ, and nexp respectively, rather than how it was before with initial_check splitting types and nexps, but constraints already being separate in the parser.
Diffstat (limited to 'editors')
0 files changed, 0 insertions, 0 deletions