Remove Ast.PVar.
authorRichard W.M. Jones <rjones@redhat.com>
Sat, 28 Dec 2019 08:52:35 +0000 (08:52 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Sat, 28 Dec 2019 08:52:35 +0000 (08:52 +0000)
commit7f776dee39a35732964a30091e55aa795169bca5
tree316b96b2b4caba9e4a7929b0aa769f3b9805807d
parentc261da4d0efea4d86131abbbc2912edfa863995e
Remove Ast.PVar.

Pure variables as patterns are disallowed.  Patterns have a distinct
type from expressions so allowing an expression to be substituted
causes complications.  In particular we want to know statically how
many targets a goal has, which is not possible if a variable can be
substituted here.

You can still write:

  "%name": ...
src/ast.ml
src/ast.mli
src/eval.ml
src/parser.mly