#!/usr/bin/env python3
# -*- coding: utf-8 -*-

# Append parentdir to import path
import os, sys
sys.path.insert(1, os.path.join(sys.path[0], '..'))

from syntax.parser import parser


def interpreter(filename, init_state):
    with open(filename, 'r') as f:
        source_code = f.read()

    ast = parser.parse(source_code)

    result = ast.exec(init_state)
    print(result)


if __name__ == "__main__":
    interpreter(sys.argv[1], dict())

bd30f9bbdd79e3d0ff5fa5e9f213176283a88180
<mask token>

<mask token>


def interpreter(filename, init_state):
    with open(filename, 'r') as f:
        source_code = f.read()
    ast = parser.parse(source_code)
    result = ast.exec(init_state)
    print(result)


<mask token>

<mask token>
sys.path.insert(1, os.path.join(sys.path[0], '..'))
<mask token>


def interpreter(filename, init_state):
    with open(filename, 'r') as f:
        source_code = f.read()
    ast = parser.parse(source_code)
    result = ast.exec(init_state)
    print(result)


if __name__ == '__main__':
    interpreter(sys.argv[1], dict())

import os, sys
sys.path.insert(1, os.path.join(sys.path[0], '..'))
from syntax.parser import parser


def interpreter(filename, init_state):
    with open(filename, 'r') as f:
        source_code = f.read()
    ast = parser.parse(source_code)
    result = ast.exec(init_state)
    print(result)


if __name__ == '__main__':
    interpreter(sys.argv[1], dict())

#!/usr/bin/env python3
# -*- coding: utf-8 -*-

# Append parentdir to import path
import os, sys
sys.path.insert(1, os.path.join(sys.path[0], '..'))

from syntax.parser import parser


def interpreter(filename, init_state):
    with open(filename, 'r') as f:
        source_code = f.read()

    ast = parser.parse(source_code)

    result = ast.exec(init_state)
    print(result)


if __name__ == "__main__":
    interpreter(sys.argv[1], dict())
