This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from typing import List | |
from .my_enums import ProviderType | |
class NoProviderError(KeyError): | |
""" | |
Error to raise when a Provider isn't found in the profile. | |
""" | |
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@{% | |
const moo = require("moo"); | |
// I'm not bothering to make each of these tokenizers full proof as I'm assuming the input | |
// will be an actual list of problems. | |
const lexer = moo.compile({ | |
sectionNum: /[1-9]+\.[0-9]+/, | |
date: /[0-9]+\/[0-9]+/, | |
number: /[0-9]+/, | |
newline: {match: '\n', lineBreaks: true}, |