Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge from main #111

Merged
merged 2 commits into from
Nov 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 29 additions & 4 deletions TestSuite.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1933,9 +1933,9 @@ print p("CALLABLE", {"f": @sum3}).f(
p("ARG1", "a"),
p("ARG2", "b"),
p("ARG3", "c") )
p("CALLABLE", @sum3) p("ARG1", "a"),
p("ARG2", "b"),
p("ARG3", "c")
p("CALLABLE", @sum3) p("ARG1", "a"),
p("ARG2", "b"),
p("ARG3", "c")
----------------------------------------------------------------------
CALLABLE
ARG1
Expand All @@ -1945,4 +1945,29 @@ abc
CALLABLE
ARG1
ARG2
ARG3
ARG3
======================================================================
==== Order of operations: list and map literals
p = function(first, second)
print first
return @second
end function
print [ p("ELEM_1", 1), p("ELEM_2", 2), p("ELEM_3", 3) ]
m = { p("KEY_1", 10): p("VALUE_1", 15), p("KEY_2", 20): p("VALUE_2", 25), p("KEY_3", 30): p("VALUE_3", 35) }
print m[10]
print m[20]
print m[30]
----------------------------------------------------------------------
ELEM_1
ELEM_2
ELEM_3
[1, 2, 3]
KEY_1
VALUE_1
KEY_2
VALUE_2
KEY_3
VALUE_3
15
25
35
Loading