mirror of
https://github.com/Reuh/anselme.git
synced 2025-10-27 16:49:31 +00:00
[language] allow multiline expression between (), [] and {}
This commit is contained in:
parent
1ea06c63eb
commit
78f3c6448e
44 changed files with 291 additions and 147 deletions
13
test/results/brace multiline.ans
Normal file
13
test/results/brace multiline.ans
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
--# run #--
|
||||
--- text ---
|
||||
| {}"" {}"{1:1, 2:2, 3:4, 4:6}" {}"" |
|
||||
--- text ---
|
||||
| {}"" {}"{1:1, 2:2, 3:4, 4:6}" {}"" |
|
||||
--- text ---
|
||||
| {}"" {}"{}" {}"" |
|
||||
--- text ---
|
||||
| {}"" {}"{1:1, 2:2, 3:4, 4:3, 5:9, 6:6}" {}"" |
|
||||
--- return ---
|
||||
()
|
||||
--# saved #--
|
||||
{}
|
||||
13
test/results/bracket multiline.ans
Normal file
13
test/results/bracket multiline.ans
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
--# run #--
|
||||
--- text ---
|
||||
| {}"" {}"[1, 2, 4, 6]" {}"" |
|
||||
--- text ---
|
||||
| {}"" {}"[1, 2, 4, 6]" {}"" |
|
||||
--- text ---
|
||||
| {}"" {}"[]" {}"" |
|
||||
--- text ---
|
||||
| {}"" {}"[1, 2, 4, 3, 9, 6]" {}"" |
|
||||
--- return ---
|
||||
()
|
||||
--# saved #--
|
||||
{}
|
||||
13
test/results/parentheses multiline.ans
Normal file
13
test/results/parentheses multiline.ans
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
--# run #--
|
||||
--- text ---
|
||||
| {}"" {}"[1, 2, 4, 6]" {}"" |
|
||||
--- text ---
|
||||
| {}"" {}"[1, 2, 4, 6]" {}"" |
|
||||
--- text ---
|
||||
| {}"" {}"()" {}"" |
|
||||
--- text ---
|
||||
| {}"" {}"[1, 2, 4, 3, 9, 6]" {}"" |
|
||||
--- return ---
|
||||
()
|
||||
--# saved #--
|
||||
{}
|
||||
15
test/tests/brace multiline.ans
Normal file
15
test/tests/brace multiline.ans
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
|{{1,2,4,
|
||||
6}}
|
||||
|
||||
|{{
|
||||
1,2,4
|
||||
,6}}
|
||||
|
||||
|{{
|
||||
}}
|
||||
|
||||
|{{1,2,4,
|
||||
/* hey */3,
|
||||
9
|
||||
/* hoy
|
||||
,6}}
|
||||
15
test/tests/bracket multiline.ans
Normal file
15
test/tests/bracket multiline.ans
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
|{[1,2,4,
|
||||
6]}
|
||||
|
||||
|{[
|
||||
1,2,4
|
||||
,6]}
|
||||
|
||||
|{[
|
||||
]}
|
||||
|
||||
|{[1,2,4,
|
||||
/* hey */3,
|
||||
9
|
||||
/* hoy
|
||||
,6]}
|
||||
15
test/tests/parentheses multiline.ans
Normal file
15
test/tests/parentheses multiline.ans
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
|{(1,2,4,
|
||||
6)}
|
||||
|
||||
|{(
|
||||
1,2,4
|
||||
,6)}
|
||||
|
||||
|{(
|
||||
)}
|
||||
|
||||
|{(1,2,4,
|
||||
/* hey */3,
|
||||
9
|
||||
/* hoy
|
||||
,6)}
|
||||
Loading…
Add table
Add a link
Reference in a new issue