Skip to content

Commit

Permalink
Rename module to LPython
Browse files Browse the repository at this point in the history
  • Loading branch information
Thirumalai-Shaktivel committed Mar 27, 2022
1 parent 3104565 commit cfe0c46
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion grammar/Python.asdl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
-- ASDL's 4 builtin types are:
-- identifier, int, string, constant

module Python
module LPython
{
mod = Module(stmt* body, type_ignore* type_ignores)
| Interactive(stmt* body)
Expand Down
6 changes: 3 additions & 3 deletions grammar/asdl_cpp.py
Original file line number Diff line number Diff line change
Expand Up @@ -1675,7 +1675,7 @@ def add_masks(fields, node):

FOOT = r"""} // namespace LFortran::%(MOD)s
#endif // LFORTRAN_%(MOD)s_H
#endif // LFORTRAN_%(MOD2)s_H
"""

visitors = [ASTNodeVisitor0, ASTNodeVisitor1, ASTNodeVisitor,
Expand Down Expand Up @@ -1706,8 +1706,8 @@ def main(argv):
"mod": mod.name.lower(),
"types": types_,
}
if subs["MOD"] == "PYTHON":
subs["MOD"] = "Python::AST"
if subs["MOD"] == "LPYTHON":
subs["MOD"] = "LPython::AST"
subs["mod"] = "ast"
is_asr = (mod.name.upper() == "ASR")
fp = open(out_file, "w", encoding="utf-8")
Expand Down

0 comments on commit cfe0c46

Please sign in to comment.