Add an argument parser
This commit is contained in:
@ -1,3 +1,3 @@
|
||||
const a = 1, b = 2;
|
||||
! + a b
|
||||
! a + b
|
||||
.
|
1
tests/expectations/left_nested_sum.txt
Normal file
1
tests/expectations/left_nested_sum.txt
Normal file
@ -0,0 +1 @@
|
||||
8
|
1
tests/expectations/subtraction.txt
Normal file
1
tests/expectations/subtraction.txt
Normal file
@ -0,0 +1 @@
|
||||
1
|
2
tests/left_nested_sum.eln
Normal file
2
tests/left_nested_sum.eln
Normal file
@ -0,0 +1,2 @@
|
||||
! (3 + 4) + 1
|
||||
.
|
2
tests/subtraction.eln
Normal file
2
tests/subtraction.eln
Normal file
@ -0,0 +1,2 @@
|
||||
! 5 - 4
|
||||
.
|
2
tests/sum.eln
Normal file
2
tests/sum.eln
Normal file
@ -0,0 +1,2 @@
|
||||
! 1 + 7
|
||||
.
|
@ -1,2 +0,0 @@
|
||||
! + 1 7
|
||||
.
|
2
tests/sums.eln
Normal file
2
tests/sums.eln
Normal file
@ -0,0 +1,2 @@
|
||||
! 1 + (3 + 4)
|
||||
.
|
@ -1,2 +0,0 @@
|
||||
! + 1 (+ 3 4)
|
||||
.
|
Reference in New Issue
Block a user