• Roman Alifanov's avatar
    Sync AWK codegen with bash codegen, fix dict.field assignment · a8f275f6
    Roman Alifanov authored
    AWK codegen:
    - Add string interpolation: "Hello {name}" -> ("Hello " name "!")
    - Add env.VAR support via ENVIRON["VAR"]
    - Add time.now() via systime()
    - Add str.chr() via sprintf("%c", n)
    - Add assert_eq() for equality assertions
    - Add print() as statement
    - Add method calls as statements (arr.push, dict.set)
    
    Bash codegen:
    - Fix dict.field = value for dict variables (was using wrong storage)
    - Fix dict.field read to use dict["field"] syntax
    a8f275f6
Name
Last commit
Last update
..
methods Loading commit data...
__init__.py Loading commit data...
ast_nodes.py Loading commit data...
awk_codegen.py Loading commit data...
class_codegen.py Loading commit data...
codegen.py Loading commit data...
constants.py Loading commit data...
cse_codegen.py Loading commit data...
dce.py Loading commit data...
decorator_codegen.py Loading commit data...
dispatch_codegen.py Loading commit data...
errors.py Loading commit data...
expr_codegen.py Loading commit data...
lexer.py Loading commit data...
main.py Loading commit data...
parser.py Loading commit data...
stdlib.py Loading commit data...
stmt_codegen.py Loading commit data...
tokens.py Loading commit data...