MCPcopy Create free account
hub / github.com/breck7/scroll / createParserPool

Method createParserPool

external/.scrollLibs.js:21214–21250  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21212
21213 class parserDefinitionParser extends ParserBackedParticle {
21214 createParserPool() {
21215 return new Particle.ParserPool(
21216 catchAllErrorParser,
21217 Object.assign(Object.assign({}, super.createParserPool()._getCueMapAsObject()), {
21218 boolean: parsersBooleanParser,
21219 float: parsersFloatParser,
21220 int: parsersIntParser,
21221 string: parsersStringParser,
21222 baseParser: parsersBaseParserParser,
21223 catchAllAtomType: catchAllAtomTypeParser,
21224 atomParser: atomParserParser,
21225 catchAllParser: catchAllParserParser,
21226 atoms: parsersAtomsParser,
21227 compiler: parsersCompilerParser,
21228 description: parserDescriptionParser,
21229 example: parsersExampleParser,
21230 extends: extendsParserParser,
21231 popularity: parsersPopularityParser,
21232 inScope: inScopeParser,
21233 javascript: parsersJavascriptParser,
21234 cue: parsersCueParser,
21235 cueFromId: cueFromIdParser,
21236 pattern: parsersPatternParser,
21237 required: parsersRequiredParser,
21238 single: parsersSingleParser,
21239 uniqueLine: uniqueLineParser,
21240 uniqueCue: uniqueCueParser,
21241 listDelimiter: listDelimiterParser,
21242 contentKey: contentKeyParser,
21243 subparticlesKey: subparticlesKeyParser,
21244 tags: parsersTagsParser,
21245 root: rootFlagParser,
21246 "//": slashCommentParser
21247 }),
21248 [{ regex: /^[a-zA-Z0-9_]+Parser$/, parser: parserDefinitionParser }]
21249 )
21250 }
21251 get parserIdAtom() {
21252 return this.getAtom(0)
21253 }

Callers

nothing calls this directly

Calls 2

_getCueMapAsObjectMethod · 0.80
createParserPoolMethod · 0.45

Tested by

no test coverage detected