Skip to content

Commit 38b0b10

Browse files
Refactor Regex and introduce Numba-based FSM utilities
1 parent 062c126 commit 38b0b10

File tree

9 files changed

+1414
-888
lines changed

9 files changed

+1414
-888
lines changed

examples/parsing.py

-17
Original file line numberDiff line numberDiff line change
@@ -26,23 +26,6 @@
2626
checkpoint, trust_remote_code=True, revision=revision
2727
).to(device)
2828

29-
# import urllib.request
30-
#
31-
# sql_grammar_url = "https://github.com/zbrookle/sql_to_ibis/raw/0e9226da42065940ce21439d490f9fcacadc7f92/sql_to_ibis/grammar/sql.lark"
32-
# sql_grammar = "".join(
33-
# [line.decode("utf-8") for line in urllib.request.urlopen(sql_grammar_url)]
34-
# )
35-
# with open("sql_grammar.lark", "w") as f:
36-
# f.write(sql_grammar)
37-
#
38-
# TODO: `_STRING_ESC_INNER` from `%import common.ESCAPED_STRING` introduces a
39-
# (potentially superfluous) look-back; we need to replace it or implement
40-
# look-backs.
41-
# parser = PartialLark.open(
42-
# "sql_grammar.lark",
43-
# parser="lalr",
44-
# )
45-
4629
parser = PartialLark.open_from_package(
4730
"tests",
4831
"partial_python.lark",

0 commit comments

Comments
 (0)