Skip to content

Commit e167aa8

Browse files
committed
removed uneeded language functions
1 parent 64db0d5 commit e167aa8

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

src/analyzer.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -144,10 +144,6 @@ export default function analyze(match) {
144144
return core.funcCall(id.sourceString, arg.rep());
145145
},
146146

147-
// FunctionGroup(_open, expr, _close) {
148-
// return core.functionGroup(expr.rep());
149-
// },
150-
151147
Expr(condExpr, _sep, _newLine, rest) {
152148
return core.expr(
153149
condExpr.rep(),
@@ -303,10 +299,6 @@ export default function analyze(match) {
303299
return core.globalRange(range.rep(), timestep?.rep());
304300
},
305301

306-
// LocalRange(_open, id, _close, range, timestep) {
307-
// return core.localRange(id.sourceString, range.rep(), timestep?.rep());
308-
// },
309-
310302
numrange(_open, start, _dots, end, _close) {
311303
return core.numRange(start?.rep(), end?.rep());
312304
},

src/core.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@ export function funcCall(name, arg) {
1717
return { type: anyType, kind: "FuncCall", name, arg };
1818
}
1919

20-
// export function functionGroup(expr) {
21-
// return { type: expr.type, kind: "FunctionGroup", expr };
22-
// }
23-
2420
export function expr(condExpr, rest = []) {
2521
return { type: condExpr.type, kind: "Expr", condExpr, rest };
2622
}
@@ -81,10 +77,6 @@ export function globalRange(range, timestep = null) {
8177
return { type: voidType, kind: "GlobalRange", range, timestep };
8278
}
8379

84-
// export function localRange(id, range, timestep = null) {
85-
// return { type: voidType, kind: "LocalRange", id, range, timestep };
86-
// }
87-
8880
export function numRange(start, end) {
8981
return { type: voidType, kind: "numRange", start, end };
9082
}

0 commit comments

Comments
 (0)