mirror of
https://github.com/Noratrieb/riverdelta.git
synced 2026-01-15 00:45:04 +01:00
Add assignments
This commit is contained in:
parent
6d2a2fe474
commit
0bf9aed35e
6 changed files with 113 additions and 32 deletions
|
|
@ -78,6 +78,9 @@ function printExpr(expr: Expr, indent: number): string {
|
|||
indent + 1
|
||||
)}`;
|
||||
}
|
||||
case "assign": {
|
||||
return `${printExpr(expr.lhs, indent)} = ${printExpr(expr.rhs, indent)}`;
|
||||
}
|
||||
case "block": {
|
||||
const exprs = expr.exprs.map((expr) => printExpr(expr, indent + 1));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue