Skip to content

Commit

Permalink
Move asdl.py and asdl_cpp.py into src/libasr
Browse files Browse the repository at this point in the history
  • Loading branch information
certik committed Aug 4, 2022
1 parent 5ad4592 commit e5318ad
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions build0.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ ci/version.sh
# Generate a Python AST from Python.asdl (Python)
python grammar/asdl_py.py
# Generate a Python AST from Python.asdl (C++)
python grammar/asdl_cpp.py grammar/Python.asdl src/lpython/python_ast.h
python src/libasr/asdl_cpp.py grammar/Python.asdl src/lpython/python_ast.h
# Generate a Fortran ASR from ASR.asdl (C++)
python grammar/asdl_cpp.py src/libasr/ASR.asdl src/libasr/asr.h
python src/libasr/asdl_cpp.py src/libasr/ASR.asdl src/libasr/asr.h
# Generate a wasm_visitor.h from src/libasr/wasm_instructions.txt (C++)
python src/libasr/wasm_instructions_visitor.py

Expand Down
4 changes: 2 additions & 2 deletions build1_win.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ bash ci/version.sh
# Generate a Python AST from Python.asdl (Python)
python grammar/asdl_py.py
# Generate a Python AST from Python.asdl (C++)
python grammar/asdl_cpp.py grammar/Python.asdl src/lpython/python_ast.h
python src/libasr/asdl_cpp.py grammar/Python.asdl src/lpython/python_ast.h
# Generate a Fortran ASR from ASR.asdl (C++)
python grammar/asdl_cpp.py src/libasr/ASR.asdl src/libasr/asr.h
python src/libasr/asdl_cpp.py src/libasr/ASR.asdl src/libasr/asr.h
4 changes: 2 additions & 2 deletions ci/build.xsh
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ llvm-config --components
bash ci/version.sh

# Generate a Fortran ASR from ASR.asdl (C++)
python grammar/asdl_cpp.py src/libasr/ASR.asdl src/libasr/asr.h
python src/libasr/asdl_cpp.py src/libasr/ASR.asdl src/libasr/asr.h
# Generate a Python AST from Python.asdl (C++)
python grammar/asdl_cpp.py grammar/Python.asdl src/lpython/python_ast.h
python src/libasr/asdl_cpp.py grammar/Python.asdl src/lpython/python_ast.h
# Generate a Python AST from Python.asdl (Python)
python grammar/asdl_py.py
# Generate a wasm_visitor.h from src/libasr/wasm_instructions.txt (C++)
Expand Down
2 changes: 2 additions & 0 deletions grammar/asdl_py.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

import sys
import os

sys.path.append("src/libasr")
import asdl

products = []
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit e5318ad

Please sign in to comment.