Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
import Token from "./Token";
import TokenType from "./TokenType";
import CodeLocation from "./CodeLocation";
/**
* This represents a token which contains a literal value (e.g. string literal, number literal and identifiers.).
*/
export default class LiteralToken<ValueT> extends Token {
constructor(
type: TokenType,
pos: CodeLocation,
lexeme: string,
public value: ValueT
) {
super(type, pos, lexeme);
}
}
df46aceb2This file is pinned to the selected release. Download the original to open it in your design tool.