Version and start fixing dingus
This commit is contained in:
parent
5064a768e7
commit
030406b2fb
3 changed files with 4 additions and 7 deletions
|
|
@ -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.
|
// Load the whole pyodide thingy.
|
||||||
|
|
@ -108,9 +108,6 @@ def eval_grammar(code):
|
||||||
|
|
||||||
grammar = None
|
grammar = None
|
||||||
for key, value in grammar_globals.items():
|
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 isinstance(value, parser.Grammar):
|
||||||
if grammar is None:
|
if grammar is None:
|
||||||
grammar = value
|
grammar = value
|
||||||
|
|
@ -118,7 +115,7 @@ def eval_grammar(code):
|
||||||
raise Exception("More than one Grammar found in the file")
|
raise Exception("More than one Grammar found in the file")
|
||||||
|
|
||||||
if grammar is None:
|
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
|
GRAMMAR = grammar
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
# This file generated by makedep.py
|
# This file generated by makedep.py
|
||||||
VERSION=0.7.9
|
VERSION=0.8
|
||||||
PYTHON_SOURCES=\
|
PYTHON_SOURCES=\
|
||||||
parser/tree_sitter.py \
|
parser/tree_sitter.py \
|
||||||
parser/runtime.py \
|
parser/runtime.py \
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ classifiers = [
|
||||||
"Private :: Do Not Upload", # Probably.
|
"Private :: Do Not Upload", # Probably.
|
||||||
"License :: OSI Approved :: MIT License",
|
"License :: OSI Approved :: MIT License",
|
||||||
]
|
]
|
||||||
version = "0.7.9"
|
version = "0.8"
|
||||||
dependencies = []
|
dependencies = []
|
||||||
requires-python = ">=3.12"
|
requires-python = ">=3.12"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue