summaryrefslogtreecommitdiff
path: root/src/bytecode_util.ml
diff options
context:
space:
mode:
authorAlastair Reid2018-07-25 18:42:26 +0100
committerAlastair Reid2018-07-26 13:14:33 +0100
commit92373cfb9dd6a9a3d450a315d462378b7de20a71 (patch)
tree33e2c2f257d5d18e0e4371912176e05c805b4c70 /src/bytecode_util.ml
parent86e29bcbb1597c4ef1f6cae8edbeed42f9a31414 (diff)
Patterns: add or and not patterns
These match the new ASL pattern constructors: - !p matches if the pattern p does not match - { p1, ... pn } matches if any of the patterns p1 ... pn match We desugar the set pattern "{p1, ... pn}" into "p1 | (p2 | ... pn)". ASL does not have pattern binding but Sail does. The rules at the moment are that none of the pattern can contain patterns. This could be relaxed by allowing "p1 | p2" to bind variables provided p1 and p2 both bind the same variables.
Diffstat (limited to 'src/bytecode_util.ml')
0 files changed, 0 insertions, 0 deletions