calcium-lang
Version:
Calcium language interpreter
14 lines (13 loc) • 380 B
TypeScript
import { InternalType, RawType } from "../type";
import { Expression } from "./index";
/**
* use a unary operator and calculate
*/
export default class UnaryOperation {
readonly operator: string;
readonly operand: Expression;
static table: {
[key: string]: (operand: RawType) => InternalType;
};
constructor(operator: string, operand: Expression);
}