mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-03 23:55:04 +08:00
14 lines
363 B
JavaScript
Executable File
14 lines
363 B
JavaScript
Executable File
import P from "parsernostrum"
|
|
import Grammar from "../serialization/Grammar.js"
|
|
import SymbolEntity from "./SymbolEntity.js"
|
|
|
|
export default class EnumEntity extends SymbolEntity {
|
|
|
|
static grammar = this.createGrammar()
|
|
|
|
/** @returns {P<EnumEntity>} */
|
|
static createGrammar() {
|
|
return Grammar.symbol.map(v => new this(v))
|
|
}
|
|
}
|