pip-services4-expressions-node
Version:
Tokenizers, parsers and expression calculators in Node.js / ES2017
23 lines (20 loc) • 648 B
text/typescript
/** @module calculator */
import { TokenType } from "../../tokenizers/TokenType";
import { GenericSymbolState } from "../../tokenizers/generic/GenericSymbolState";
/**
* Implements a symbol state object.
*/
export class ExpressionSymbolState extends GenericSymbolState {
/**
* Constructs an instance of this class.
*/
public constructor() {
super();
this.add("<=", TokenType.Symbol);
this.add(">=", TokenType.Symbol);
this.add("<>", TokenType.Symbol);
this.add("!=", TokenType.Symbol);
this.add(">>", TokenType.Symbol);
this.add("<<", TokenType.Symbol);
}
}