[fine] Automatic rebase support for CST
This commit is contained in:
parent
1f6d7ec131
commit
26871aa9ae
6 changed files with 122 additions and 8 deletions
|
|
@ -1,10 +1,6 @@
|
|||
// concrete:
|
||||
// | File
|
||||
// | ExpressionStatement
|
||||
// | LiteralExpression
|
||||
// | Number:'"42"'
|
||||
// | Semicolon:'";"'
|
||||
// | ExpressionStatement
|
||||
// | BinaryExpression
|
||||
// | BinaryExpression
|
||||
// | LiteralExpression
|
||||
|
|
@ -23,5 +19,4 @@
|
|||
// | Number:'"4"'
|
||||
// | Semicolon:'";"'
|
||||
//
|
||||
42;
|
||||
1 * 2 + -3 * 4;
|
||||
22
fine/tests/expression/boolean.fine
Normal file
22
fine/tests/expression/boolean.fine
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
// concrete:
|
||||
// | File
|
||||
// | ExpressionStatement
|
||||
// | BinaryExpression
|
||||
// | BinaryExpression
|
||||
// | LiteralExpression
|
||||
// | True:'"true"'
|
||||
// | And:'"and"'
|
||||
// | LiteralExpression
|
||||
// | False:'"false"'
|
||||
// | Or:'"or"'
|
||||
// | BinaryExpression
|
||||
// | LiteralExpression
|
||||
// | False:'"false"'
|
||||
// | And:'"and"'
|
||||
// | UnaryExpression
|
||||
// | Bang:'"!"'
|
||||
// | LiteralExpression
|
||||
// | True:'"true"'
|
||||
// | Semicolon:'";"'
|
||||
//
|
||||
true and false or false and !true;
|
||||
8
fine/tests/expression/number.fine
Normal file
8
fine/tests/expression/number.fine
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
// concrete:
|
||||
// | File
|
||||
// | ExpressionStatement
|
||||
// | LiteralExpression
|
||||
// | Number:'"42"'
|
||||
// | Semicolon:'";"'
|
||||
//
|
||||
42;
|
||||
12
fine/tests/expression/strings.fine
Normal file
12
fine/tests/expression/strings.fine
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
// concrete:
|
||||
// | File
|
||||
// | ExpressionStatement
|
||||
// | BinaryExpression
|
||||
// | LiteralExpression
|
||||
// | String:'"\"Hello \""'
|
||||
// | Plus:'"+"'
|
||||
// | LiteralExpression
|
||||
// | String:'"'world!'"'
|
||||
// | Semicolon:'";"'
|
||||
//
|
||||
"Hello " + 'world!';
|
||||
Loading…
Add table
Add a link
Reference in a new issue