-
-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Fixed an issue where multiple chunks can be declared on a single line
- Loading branch information
Showing
3 changed files
with
180 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
a = 1 b = 1 | ||
d = True {1} | ||
e = False {"a": 2} | ||
f = 0.1 (1) | ||
g = {x = 1} Class {name = Str; age = Nat} | ||
|
||
[1, 2, 3] {1} | ||
[1, 2, 3] {"c": 3} | ||
[1, 2, 3] (1) | ||
[1, 2, 3] {x = 1} | ||
|
||
{1, 2, 3} {1} | ||
{1, 2, 3} {"c": 3} | ||
{1, 2, 3} (1) | ||
{1, 2, 3} {x = 1} | ||
|
||
{x = 1} {1} | ||
{x = 1} {"c": 3} | ||
{x = 1} (1) | ||
{x = 1} {x = 1} | ||
|
||
{"a": 1, "b": 2} {1} | ||
{"a": 1, "b": 2} {"c": 3} | ||
{"a": 1, "b": 2} (1) | ||
{"a": 1, "b": 2} {x = 1; y = 1} | ||
|
||
{1, 2, 3} g = 1 | ||
(1, 2, 3) {1} | ||
(1, 2, 3) {"c": 3} | ||
(1, 2, 3) {x = 1} | ||
|
||
Class {name = Str; age = Nat} z = 1 | ||
|
||
# different error | ||
[1, 2, 3] e = 1 | ||
{"a": 1, "b": 2} h = 1 | ||
{x = 1} i = 1 | ||
(1, 2, 3) j = 1 | ||
|
||
h = 1 [0, 1] | ||
[1, 2, 3] [0, 1] | ||
{"a": 1, "b": 2} [0, 1] | ||
{x = 1} [0, 1] | ||
(1, 2, 3) [0, 1] | ||
|
||
# passed: index access, but invalid | ||
{x = 1} [0] | ||
(1, 2, 3) [0] | ||
Class {name = Str; age = Nat} [0] | ||
|
||
# passed: as args | ||
[2, 2, 3] Class {name = Str; age = Nat} | ||
{1, 2, 3} Class {name = Str; age = Nat} | ||
{"a": 1, "b": 2} Class {name = Str; age = Nat} | ||
(1, 2, 3) Class {name = Str; age = Nat} | ||
|
||
Class {name = Str; age = Nat} [1, 2, 2] | ||
Class {name = Str; age = Nat} {1, 2, 3} | ||
Class {name = Str; age = Nat} {"c": 3, "d": 4} | ||
Class {name = Str; age = Nat} (1, 2, 3) | ||
Class {name = Str; age = Nat} Class {x = Int; y = Int} | ||
|
||
block = | ||
a = 1 b = 1 | ||
c = "Hello, world" [0] # is it possible to parse? | ||
d = True {1} | ||
e = False {"a": 2} | ||
f = 0.1 (1) | ||
g = {x = 1} Class {name = Str; age = Nat} | ||
|
||
[1, 2, 3] {1} | ||
[1, 2, 3] {"c": 3} | ||
[1, 2, 3] (1) | ||
[1, 2, 3] {x = 1} | ||
|
||
{1, 2, 3} [1] | ||
{1, 2, 3} {1} | ||
{1, 2, 3} {"c": 3} | ||
{1, 2, 3} (1) | ||
{1, 2, 3} {x = 1} | ||
|
||
{x = 1} {1} | ||
{x = 1} {"c": 3} | ||
{x = 1} (1) | ||
{x = 1} {x = 1} | ||
|
||
{"a": 1, "b": 2} {1} | ||
{"a": 1, "b": 2} {"c": 3} | ||
{"a": 1, "b": 2} (1) | ||
{"a": 1, "b": 2} {x = 1; y = 1} | ||
|
||
{1, 2, 3} g = 1 | ||
(1, 2, 3) {1} | ||
(1, 2, 3) {"c": 3} | ||
(1, 2, 3) {x = 1} | ||
|
||
Class {name = Str; age = Nat} z = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters