diff options
author | Erik Oosting | 2023-12-12 16:24:03 +0100 |
---|---|---|
committer | Erik Oosting | 2023-12-12 16:24:03 +0100 |
commit | 258121cfb53b6b002dd0d2f68b91ce5234011620 (patch) | |
tree | b81b6435096a4088d4f110c089206be7ff3a0633 /gen/ANF.interp | |
parent | d9ffc2f3f679bf6e87cf12dc1ed9809badf673da (diff) |
first visit method done
Diffstat (limited to 'gen/ANF.interp')
-rw-r--r-- | gen/ANF.interp | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/gen/ANF.interp b/gen/ANF.interp index 9a99c83..88823aa 100644 --- a/gen/ANF.interp +++ b/gen/ANF.interp @@ -1,10 +1,13 @@ token literal names: null +'def' +'(' +',' +')' +':' 'true' 'false' -'(' '+' -')' '-' '*' '/' @@ -16,8 +19,6 @@ null '&&' '||' '^^' -',' -':' 'let' '=' 'in' @@ -55,16 +56,19 @@ null null null null +null IDENT NUMBER STRING WS rule names: +prog +def aexp funcall cexp atn: -[4, 1, 28, 130, 2, 0, 7, 0, 2, 1, 7, 1, 2, 2, 7, 2, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1,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5, 10, 0, 0, 43, 44, 3, 0, 0, 0, 44, 45, 5, 5, 0, 0, 45, 96, 1, 0, 0, 0, 46, 47, 5, 3, 0, 0, 47, 48, 3, 0, 0, 0, 48, 49, 5, 11, 0, 0, 49, 50, 3, 0, 0, 0, 50, 51, 5, 5, 0, 0, 51, 96, 1, 0, 0, 0, 52, 53, 5, 3, 0, 0, 53, 54, 3, 0, 0, 0, 54, 55, 5, 12, 0, 0, 55, 56, 3, 0, 0, 0, 56, 57, 5, 5, 0, 0, 57, 96, 1, 0, 0, 0, 58, 59, 5, 3, 0, 0, 59, 60, 3, 0, 0, 0, 60, 61, 5, 13, 0, 0, 61, 62, 3, 0, 0, 0, 62, 63, 5, 5, 0, 0, 63, 96, 1, 0, 0, 0, 64, 65, 5, 3, 0, 0, 65, 66, 3, 0, 0, 0, 66, 67, 5, 14, 0, 0, 67, 68, 3, 0, 0, 0, 68, 69, 5, 5, 0, 0, 69, 96, 1, 0, 0, 0, 70, 71, 5, 3, 0, 0, 71, 72, 3, 0, 0, 0, 72, 73, 5, 15, 0, 0, 73, 74, 3, 0, 0, 0, 74, 75, 5, 5, 0, 0, 75, 96, 1, 0, 0, 0, 76, 77, 5, 3, 0, 0, 77, 78, 3, 0, 0, 0, 78, 79, 5, 16, 0, 0, 79, 80, 3, 0, 0, 0, 80, 81, 5, 5, 0, 0, 81, 96, 1, 0, 0, 0, 82, 83, 5, 3, 0, 0, 83, 88, 5, 25, 0, 0, 84, 85, 5, 17, 0, 0, 85, 87, 5, 25, 0, 0, 86, 84, 1, 0, 0, 0, 87, 90, 1, 0, 0, 0, 88, 86, 1, 0, 0, 0, 88, 89, 1, 0, 0, 0, 89, 91, 1, 0, 0, 0, 90, 88, 1, 0, 0, 0, 91, 92, 5, 18, 0, 0, 92, 93, 3, 4, 2, 0, 93, 94, 5, 5, 0, 0, 94, 96, 1, 0, 0, 0, 95, 6, 1, 0, 0, 0, 95, 7, 1, 0, 0, 0, 95, 8, 1, 0, 0, 0, 95, 9, 1, 0, 0, 0, 95, 10, 1, 0, 0, 0, 95, 16, 1, 0, 0, 0, 95, 22, 1, 0, 0, 0, 95, 28, 1, 0, 0, 0, 95, 34, 1, 0, 0, 0, 95, 40, 1, 0, 0, 0, 95, 46, 1, 0, 0, 0, 95, 52, 1, 0, 0, 0, 95, 58, 1, 0, 0, 0, 95, 64, 1, 0, 0, 0, 95, 70, 1, 0, 0, 0, 95, 76, 1, 0, 0, 0, 95, 82, 1, 0, 0, 0, 96, 1, 1, 0, 0, 0, 97, 98, 5, 25, 0, 0, 98, 99, 5, 3, 0, 0, 99, 104, 3, 0, 0, 0, 100, 101, 5, 17, 0, 0, 101, 103, 3, 0, 0, 0, 102, 100, 1, 0, 0, 0, 103, 106, 1, 0, 0, 0, 104, 102, 1, 0, 0, 0, 104, 105, 1, 0, 0, 0, 105, 107, 1, 0, 0, 0, 106, 104, 1, 0, 0, 0, 107, 108, 5, 5, 0, 0, 108, 111, 1, 0, 0, 0, 109, 111, 3, 0, 0, 0, 110, 97, 1, 0, 0, 0, 110, 109, 1, 0, 0, 0, 111, 3, 1, 0, 0, 0, 112, 113, 5, 19, 0, 0, 113, 114, 5, 25, 0, 0, 114, 115, 5, 20, 0, 0, 115, 116, 3, 2, 1, 0, 116, 117, 5, 21, 0, 0, 117, 118, 3, 4, 2, 0, 118, 128, 1, 0, 0, 0, 119, 120, 5, 22, 0, 0, 120, 121, 3, 0, 0, 0, 121, 122, 5, 23, 0, 0, 122, 123, 3, 4, 2, 0, 123, 124, 5, 24, 0, 0, 124, 125, 3, 4, 2, 0, 125, 128, 1, 0, 0, 0, 126, 128, 3, 2, 1, 0, 127, 112, 1, 0, 0, 0, 127, 119, 1, 0, 0, 0, 127, 126, 1, 0, 0, 0, 128, 5, 1, 0, 0, 0, 5, 88, 95, 104, 110, 127] \ No newline at end of file +[4, 1, 29, 157, 2, 0, 7, 0, 2, 1, 7, 1, 2, 2, 7, 2, 2, 3, 7, 3, 2, 4, 7, 4, 1, 0, 4, 0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 0, 0, 10, 12, 3, 2, 1, 0, 11, 10, 1, 0, 0, 0, 12, 13, 1, 0, 0, 0, 13, 11, 1, 0, 0, 0, 13, 14, 1, 0, 0, 0, 14, 1, 1, 0, 0, 0, 15, 16, 5, 1, 0, 0, 16, 17, 5, 26, 0, 0, 17, 26, 5, 2, 0, 0, 18, 23, 5, 26, 0, 0, 19, 20, 5, 3, 0, 0, 20, 22, 5, 26, 0, 0, 21, 19, 1, 0, 0, 0, 22, 25, 1, 0, 0, 0, 23, 21, 1, 0, 0, 0, 23, 24, 1, 0, 0, 0, 24, 27, 1, 0, 0, 0, 25, 23, 1, 0, 0, 0, 26, 18, 1, 0, 0, 0, 26, 27, 1, 0, 0, 0, 27, 28, 1, 0, 0, 0, 28, 29, 5, 4, 0, 0, 29, 30, 5, 5, 0, 0, 30, 31, 3, 8, 4, 0, 31, 3, 1, 0, 0, 0, 32, 123, 5, 6, 0, 0, 33, 123, 5, 7, 0, 0, 34, 123, 5, 26, 0, 0, 35, 123, 5, 27, 0, 0, 36, 123, 5, 28, 0, 0, 37, 38, 5, 2, 0, 0, 38, 39, 3, 4, 2, 0, 39, 40, 5, 8, 0, 0, 40, 41, 3, 4, 2, 0, 41, 42, 5, 4, 0, 0, 42, 123, 1, 0, 0, 0, 43, 44, 5, 2, 0, 0, 44, 45, 3, 4, 2, 0, 45, 46, 5, 9, 0, 0, 46, 47, 3, 4, 2, 0, 47, 48, 5, 4, 0, 0, 48, 123, 1, 0, 0, 0, 49, 50, 5, 2, 0, 0, 50, 51, 3, 4, 2, 0, 51, 52, 5, 10, 0, 0, 52, 53, 3, 4, 2, 0, 53, 54, 5, 4, 0, 0, 54, 123, 1, 0, 0, 0, 55, 56, 5, 2, 0, 0, 56, 57, 3, 4, 2, 0, 57, 58, 5, 11, 0, 0, 58, 59, 3, 4, 2, 0, 59, 60, 5, 4, 0, 0, 60, 123, 1, 0, 0, 0, 61, 62, 5, 2, 0, 0, 62, 63, 3, 4, 2, 0, 63, 64, 5, 12, 0, 0, 64, 65, 3, 4, 2, 0, 65, 66, 5, 4, 0, 0, 66, 123, 1, 0, 0, 0, 67, 68, 5, 2, 0, 0, 68, 69, 3, 4, 2, 0, 69, 70, 5, 13, 0, 0, 70, 71, 3, 4, 2, 0, 71, 72, 5, 4, 0, 0, 72, 123, 1, 0, 0, 0, 73, 74, 5, 2, 0, 0, 74, 75, 3, 4, 2, 0, 75, 76, 5, 14, 0, 0, 76, 77, 3, 4, 2, 0, 77, 78, 5, 4, 0, 0, 78, 123, 1, 0, 0, 0, 79, 80, 5, 2, 0, 0, 80, 81, 3, 4, 2, 0, 81, 82, 5, 15, 0, 0, 82, 83, 3, 4, 2, 0, 83, 84, 5, 4, 0, 0, 84, 123, 1, 0, 0, 0, 85, 86, 5, 2, 0, 0, 86, 87, 3, 4, 2, 0, 87, 88, 5, 16, 0, 0, 88, 89, 3, 4, 2, 0, 89, 90, 5, 4, 0, 0, 90, 123, 1, 0, 0, 0, 91, 92, 5, 2, 0, 0, 92, 93, 3, 4, 2, 0, 93, 94, 5, 17, 0, 0, 94, 95, 3, 4, 2, 0, 95, 96, 5, 4, 0, 0, 96, 123, 1, 0, 0, 0, 97, 98, 5, 2, 0, 0, 98, 99, 3, 4, 2, 0, 99, 100, 5, 18, 0, 0, 100, 101, 3, 4, 2, 0, 101, 102, 5, 4, 0, 0, 102, 123, 1, 0, 0, 0, 103, 104, 5, 2, 0, 0, 104, 105, 3, 4, 2, 0, 105, 106, 5, 19, 0, 0, 106, 107, 3, 4, 2, 0, 107, 108, 5, 4, 0, 0, 108, 123, 1, 0, 0, 0, 109, 110, 5, 2, 0, 0, 110, 115, 5, 26, 0, 0, 111, 112, 5, 3, 0, 0, 112, 114, 5, 26, 0, 0, 113, 111, 1, 0, 0, 0, 114, 117, 1, 0, 0, 0, 115, 113, 1, 0, 0, 0, 115, 116, 1, 0, 0, 0, 116, 118, 1, 0, 0, 0, 117, 115, 1, 0, 0, 0, 118, 119, 5, 5, 0, 0, 119, 120, 3, 8, 4, 0, 120, 121, 5, 4, 0, 0, 121, 123, 1, 0, 0, 0, 122, 32, 1, 0, 0, 0, 122, 33, 1, 0, 0, 0, 122, 34, 1, 0, 0, 0, 122, 35, 1, 0, 0, 0, 122, 36, 1, 0, 0, 0, 122, 37, 1, 0, 0, 0, 122, 43, 1, 0, 0, 0, 122, 49, 1, 0, 0, 0, 122, 55, 1, 0, 0, 0, 122, 61, 1, 0, 0, 0, 122, 67, 1, 0, 0, 0, 122, 73, 1, 0, 0, 0, 122, 79, 1, 0, 0, 0, 122, 85, 1, 0, 0, 0, 122, 91, 1, 0, 0, 0, 122, 97, 1, 0, 0, 0, 122, 103, 1, 0, 0, 0, 122, 109, 1, 0, 0, 0, 123, 5, 1, 0, 0, 0, 124, 125, 5, 26, 0, 0, 125, 126, 5, 2, 0, 0, 126, 131, 3, 4, 2, 0, 127, 128, 5, 3, 0, 0, 128, 130, 3, 4, 2, 0, 129, 127, 1, 0, 0, 0, 130, 133, 1, 0, 0, 0, 131, 129, 1, 0, 0, 0, 131, 132, 1, 0, 0, 0, 132, 134, 1, 0, 0, 0, 133, 131, 1, 0, 0, 0, 134, 135, 5, 4, 0, 0, 135, 138, 1, 0, 0, 0, 136, 138, 3, 4, 2, 0, 137, 124, 1, 0, 0, 0, 137, 136, 1, 0, 0, 0, 138, 7, 1, 0, 0, 0, 139, 140, 5, 20, 0, 0, 140, 141, 5, 26, 0, 0, 141, 142, 5, 21, 0, 0, 142, 143, 3, 6, 3, 0, 143, 144, 5, 22, 0, 0, 144, 145, 3, 8, 4, 0, 145, 155, 1, 0, 0, 0, 146, 147, 5, 23, 0, 0, 147, 148, 3, 4, 2, 0, 148, 149, 5, 24, 0, 0, 149, 150, 3, 8, 4, 0, 150, 151, 5, 25, 0, 0, 151, 152, 3, 8, 4, 0, 152, 155, 1, 0, 0, 0, 153, 155, 3, 6, 3, 0, 154, 139, 1, 0, 0, 0, 154, 146, 1, 0, 0, 0, 154, 153, 1, 0, 0, 0, 155, 9, 1, 0, 0, 0, 8, 13, 23, 26, 115, 122, 131, 137, 154] \ No newline at end of file |