mirror of
https://github.com/irmen/prog8.git
synced 2024-12-24 16:29:21 +00:00
13 lines
284 B
Python
13 lines
284 B
Python
|
import cProfile
|
||
|
from il65.compile import PlyParser
|
||
|
from il65.optimize import optimize
|
||
|
|
||
|
|
||
|
def parse():
|
||
|
parser = PlyParser(enable_floats=True)
|
||
|
parsed_module = parser.parse_file("testsource/large.ill")
|
||
|
optimize(parsed_module)
|
||
|
|
||
|
|
||
|
cProfile.run("parse()", filename="profile.dat")
|