diff options
author | Eduardo Julian | 2019-06-21 02:28:36 -0400 |
---|---|---|
committer | Eduardo Julian | 2019-06-21 02:28:36 -0400 |
commit | 4185f741da89db237ee68920cb155d64d2fac356 (patch) | |
tree | 2ed59e072c47a24390e3afd9f82f58245bdc11e1 /stdlib/source/lux/target/jvm/attribute/code/exception.lux | |
parent | bbc0f5dc9dc0f810e95a20c8a986adb3839f9fdc (diff) |
Separated reading and writing binary data (lumping them together was a bad idea in the first place).
Diffstat (limited to 'stdlib/source/lux/target/jvm/attribute/code/exception.lux')
-rw-r--r-- | stdlib/source/lux/target/jvm/attribute/code/exception.lux | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/stdlib/source/lux/target/jvm/attribute/code/exception.lux b/stdlib/source/lux/target/jvm/attribute/code/exception.lux index c1f4bf581..6f6b8a0be 100644 --- a/stdlib/source/lux/target/jvm/attribute/code/exception.lux +++ b/stdlib/source/lux/target/jvm/attribute/code/exception.lux @@ -2,9 +2,12 @@ [lux #* [abstract ["." equivalence (#+ Equivalence)]] + [control + ["<>" parser ("#@." functor) + ["<2>" binary (#+ Parser)]]] [data [format - [".F" binary (#+ Format)]]]] + [".F" binary (#+ Writer)]]]] ["." // #_ ["#." label (#+ Label)] ["//#" /// #_ @@ -42,11 +45,20 @@ ////unsigned.u2-bytes )) -(def: #export format - (Format Exception) +(def: #export parser + (Parser Exception) + ($_ <>.and + //label.parser + //label.parser + //label.parser + ////index.parser + )) + +(def: #export writer + (Writer Exception) ($_ binaryF.and - //label.format - //label.format - //label.format - ////index.format + //label.writer + //label.writer + //label.writer + ////index.writer )) |