Skip to content

Commit

Permalink
Generate the WASM files
Browse files Browse the repository at this point in the history
  • Loading branch information
certik committed Jun 4, 2022
1 parent 0945ecb commit 5e9203a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build0.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ python grammar/asdl_py.py
python grammar/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
# Generate a wasm_visitor.h from src/libasr/wasm_instructions.txt (C++)
python src/libasr/wasm_instructions_visitor.py

# Generate the tokenizer and parser
(cd src/lpython/parser && re2c -W -b tokenizer.re -o tokenizer.cpp)
Expand Down
2 changes: 2 additions & 0 deletions ci/build.xsh
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ python grammar/asdl_cpp.py src/libasr/ASR.asdl src/libasr/asr.h
python grammar/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++)
python src/libasr/wasm_instructions_visitor.py

# Generate the tokenizer and parser
pushd src/lpython/parser && re2c -W -b tokenizer.re -o tokenizer.cpp && popd
Expand Down

0 comments on commit 5e9203a

Please sign in to comment.