()
| 19854 | // constructor for new language that takes files in that language to execute, compile, etc. |
| 19855 | class 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() { |
nothing calls this directly
no outgoing calls
no test coverage detected