mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-13 00:24:48 +08:00
16 lines
376 B
JavaScript
16 lines
376 B
JavaScript
import P from "parsernostrum"
|
|
import IEntity from "./IEntity.js"
|
|
|
|
export default class NullEntity extends IEntity {
|
|
|
|
static grammar = /** @type {P<NullEntity>} */(
|
|
// @ts-expect-error
|
|
P.reg(new RegExp(String.raw`\(${P.whitespaceInlineOpt.getParser().regexp.source}\)`))
|
|
.map(v => new this())
|
|
)
|
|
|
|
toString() {
|
|
return "()"
|
|
}
|
|
}
|