Changeset 50b5464 in sasmodels for sasmodels/codegen.py
- Timestamp:
- Dec 4, 2017 10:12:20 AM (6 years ago)
- Children:
- 7a40b08
- Parents:
- bf88ef1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/codegen.py
rdb03406 r50b5464 49 49 UNARYOP_SYMBOLS[ast.USub] = '-' 50 50 51 52 def translate(functions, constants): 53 # type: (List[Tuple[str, str, int]], Dict[str, Any]) -> str 54 snippets = [] 55 for source, filename, offset in functions: 56 tree = ast.parse(source) 57 snippet = to_source(tree) #, filename, offset) 58 snippets.append(snippet) 59 return "\n".join(snippets) 51 60 52 61 def to_source(node, indent_with=' ' * 4, add_line_information=False):
Note: See TracChangeset
for help on using the changeset viewer.