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

Method createParserPool

external/.scrollLibs.js:19856–19864  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19854// constructor for new language that takes files in that language to execute, compile, etc.
19855class HandParsersProgram extends AbstractParserDefinitionParser {
19856 createParserPool() {
19857 const map = {}
19858 map[ParsersConstants.comment] = Particle
19859 return new Particle.ParserPool(UnknownParserParticle, map, [
19860 { regex: HandParsersProgram.blankLineRegex, parser: Particle },
19861 { regex: HandParsersProgram.parserFullRegex, parser: parserDefinitionParser },
19862 { regex: HandParsersProgram.atomTypeFullRegex, parser: atomTypeDefinitionParser }
19863 ])
19864 }
19865 // rootParser
19866 // Note: this is some so far unavoidable tricky code. We need to eval the transpiled JS, in a NodeJS or browser environment.
19867 _compileAndReturnRootParser() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected