clarity-pattern-parser
Version:
Parsing Library for Typescript and Javascript.
15 lines (12 loc) • 386 B
text/typescript
import { Options } from "../../patterns/Options";
import { arrayLiteral } from "./arrayLiteral";
import { numberLiteral } from "./numberLiteral";
import { objectLiteral } from "./objectLiteral";
import { stringLiteral } from "./stringLiteral";
const literal = new Options("literal", [
numberLiteral,
stringLiteral,
arrayLiteral,
objectLiteral,
]);
export { literal };