diff --git a/dingus/worker.js b/dingus/worker.js index f37a034..8a5e66d 100644 --- a/dingus/worker.js +++ b/dingus/worker.js @@ -1,4 +1,4 @@ -const PARSER_PACKAGE = "./wheel/lrparsers-0.7.9-py3-none-any.whl" +const PARSER_PACKAGE = "./wheel/lrparsers-0.8-py3-none-any.whl" // Load the whole pyodide thingy. @@ -108,9 +108,6 @@ def eval_grammar(code): grammar = None for key, value in grammar_globals.items(): - if isinstance(value, type) and issubclass(value, parser.Grammar) and value is not parser.Grammar: - value = value() - if isinstance(value, parser.Grammar): if grammar is None: grammar = value @@ -118,7 +115,7 @@ def eval_grammar(code): raise Exception("More than one Grammar found in the file") if grammar is None: - raise Exception("No grammar definition, define or instantiate a class that inherits from parser.Grammar") + raise Exception("No grammar definition, make an instance of parser.Grammar") GRAMMAR = grammar diff --git a/lrparser.mk b/lrparser.mk index 1c10d26..1f8ae98 100644 --- a/lrparser.mk +++ b/lrparser.mk @@ -1,5 +1,5 @@ # This file generated by makedep.py -VERSION=0.7.9 +VERSION=0.8 PYTHON_SOURCES=\ parser/tree_sitter.py \ parser/runtime.py \ diff --git a/pyproject.toml b/pyproject.toml index 860dc74..c4b4207 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,7 +8,7 @@ classifiers = [ "Private :: Do Not Upload", # Probably. "License :: OSI Approved :: MIT License", ] -version = "0.7.9" +version = "0.8" dependencies = [] requires-python = ">=3.12" readme = "README.md"