smucclaw / lam4

A functional (and hopefully in the near future, solver-aided) DSL for the law
MIT License
1 stars 0 forks source link

Refactor deontics in Langium grammar and ConcreteSyntax.hs; add initial WIP draft of AST with symbolic types; misc other tweaks #53

Closed ym-han closed 2 months ago

ym-han commented 2 months ago

Bit of a grab bag of changes --- I should have split it up into multiple PRs:

  1. Most important: Refactors deontics in Langium grammar and ConcreteSyntax.hs and adds more documentation / comments, along with examples
  2. Add initial WIP draft of AST with symbolic types
  3. Misc other tweaks, e.g. adding syntax for record declarations and de-emphasizing, at least for now, Sigs/Relations (e.g. Join is disabled now in the Langium grammar)

Note: This PR introduces changes in the Langium grammar that have not yet been integrated into the typechecker or Parser.hs. So, e.g.,

I'm going to merge this in anyway, because I want to be able to demo the syntax for normative constructs / get a discussion going around that.