diff options
| author | s-ol <s+removethis@s-ol.nu> | 2022-02-04 00:49:32 +0000 |
|---|---|---|
| committer | s-ol <s+removethis@s-ol.nu> | 2025-03-02 14:24:49 +0000 |
| commit | a3b3db30e1d1ac22852d6c06ea62f0c5e3bc11da (patch) | |
| tree | 32221fb1eeb814644d1ea58b59f17a7216488eb7 /alv-lib | |
| parent | lib: fix midi on Lua 5.1 (diff) | |
| download | alive-a3b3db30e1d1ac22852d6c06ea62f0c5e3bc11da.tar.gz alive-a3b3db30e1d1ac22852d6c06ea62f0c5e3bc11da.zip | |
add Dummy AST node
Diffstat (limited to 'alv-lib')
| -rw-r--r-- | alv-lib/array-.moon | 5 | ||||
| -rw-r--r-- | alv-lib/testing.moon | 6 |
2 files changed, 5 insertions, 6 deletions
diff --git a/alv-lib/array-.moon b/alv-lib/array-.moon index 68557cd..1e7e781 100644 --- a/alv-lib/array-.moon +++ b/alv-lib/array-.moon @@ -1,6 +1,5 @@ -import Array, Op, PureOp, Builtin, Constant, Error, const, any, T from require 'alv.base' -import Cell from require 'alv.cell' -import Tag from require 'alv.tag' +import Array, Op, PureOp, Builtin, RTNode, Constant, Error, const, any, T from require 'alv.base' +import Cell, Tag, Dummy from require 'alv.ast' builtins = require 'alv.builtins' unpack or= table.unpack diff --git a/alv-lib/testing.moon b/alv-lib/testing.moon index a321e43..7abe9f6 100644 --- a/alv-lib/testing.moon +++ b/alv-lib/testing.moon @@ -1,5 +1,5 @@ import Constant, Op, Builtin, Input, Error, T, any, const from require "alv.base" -import Tag, Cell from require "alv" +import Cell, Tag, Dummy from require "alv.ast" assert_ = Constant.meta meta: @@ -33,7 +33,7 @@ By default, the message contains the failing check expression." tag = @tag\clone Tag.parse '-1' inner = Cell tag, { - Constant.literal T.opdef, assertOp, 'assert' + Dummy.literal T.opdef, assertOp tail[1] tail[2] or Constant.str "assertion failed: #{tail[1]\stringify 2}" } @@ -76,7 +76,7 @@ If not, throws an error." assert #tail > 1, "'expect=' takes at least two arguments" children = { - Constant.literal T.opdef, expectOp, 'assert' + Dummy.literal T.opdef, expectOp tail[1] } for arg in *tail[2,] |
