* Simplify @-patterns: only {attrs}@name' or name@{attrs}' are now
allowed. So `name1@name2', `{attrs1}@{attrs2}' and so on are now no
longer legal. This is no big loss because they were not useful
anyway.
This also changes the output of builtins.toXML for @-patterns
slightly.
This commit is contained in:
parent
7482349fe8
commit
8a10360c91
13 changed files with 83 additions and 173 deletions
|
|
@ -77,8 +77,7 @@ Inherit | Expr ATermList Pos | ATerm |
|
|||
Scope | | Expr |
|
||||
|
||||
VarPat | string | Pattern |
|
||||
AttrsPat | ATermList ATermBool | Pattern | # bool = `...'
|
||||
AtPat | Pattern Pattern | Pattern |
|
||||
AttrsPat | ATermList ATermBool string | Pattern | # bool = `...'
|
||||
|
||||
Formal | string DefaultValue | ATerm |
|
||||
|
||||
|
|
@ -95,3 +94,4 @@ AttrRHS | Expr Pos | ATerm |
|
|||
eTrue = makeBool(makeTrue())
|
||||
eFalse = makeBool(makeFalse())
|
||||
sOverrides = toATerm("__overrides")
|
||||
sNoAlias = toATerm("")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue