Skip to content

Commit

Permalink
Update ANTLR version
Browse files Browse the repository at this point in the history
  • Loading branch information
hermansje committed Mar 8, 2019
1 parent f7efaf8 commit 9def1d6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ py.test
## Usage

**Note: This tutorial assumes you know how to parse code, and create a python visitor.**
See the Antlr4 [getting started guide](https://github.com/antlr/antlr4/blob/4.7.1/doc/getting-started.md) if you have never installed Antlr.
See the Antlr4 [getting started guide](https://github.com/antlr/antlr4/blob/4.7.2/doc/getting-started.md) if you have never installed Antlr.
The [Antlr Mega Tutorial](https://tomassetti.me/antlr-mega-tutorial/#python-setup) has useful python examples.

Using `antlr-ast` involves three steps:
Expand Down
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
antlr4-python3-runtime
antlr4-python3-runtime~=4.7.2

pytest
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
VERSION = str(ast.literal_eval(_version_re.search(fp.read()).group(1)))
with open(REQUIREMENTS_FILE, encoding="utf-8") as fp:
req_txt = fp.read()
_requirements_re_template = r"^({}(?:\s*[<>=]+\s*\S*)?)\s*(?:#.*)?$"
_requirements_re_template = r"^({}(?:\s*[~<>=]+\s*\S*)?)\s*(?:#.*)?$"
REQUIREMENTS = [
re.search(_requirements_re_template.format(requirement), req_txt, re.M).group(0)
for requirement in REQUIREMENT_NAMES
Expand Down

0 comments on commit 9def1d6

Please sign in to comment.