@flowscripter/mpeg-sdl-parser
Version:
ISO/IEC 14496-34 Syntactic Description Language (MPEG SDL) parser implemented in TypeScript
17 lines (14 loc) • 403 B
text/typescript
import type { Token } from "../token/Token.ts";
import { AbstractLeafNode } from "./AbstractLeafNode.ts";
import { NodeKind } from "./enum/node_kind.ts";
export class Identifier extends AbstractLeafNode {
constructor(
public readonly name: string,
public readonly literal: Token,
) {
super(NodeKind.IDENTIFIER, literal, literal);
}
toString(): string {
return this.name;
}
}