sacalon / sacalon

Sacalon is a general purpose and open source programming language designed to build optimal, maintainable, reliable and efficient software.

Home Page:https://sacalon.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NameError: name 'exit' is not defined

mmdbalkhi opened this issue · comments

Use sys.exit instead of exit

$ ./dist/hascal 
Hascal Compiler 1.3.9-rc linux/x86_64
Copyright (c) 2019-2022 Hascal Foundation,
All rights reserved.

Enter following command to compile a Hascal program :
	hascal <inputfile.has> [output file name]
to show other commands enter following command :
	hascal help
Traceback (most recent call last):
  File "hascal.py", line 19, in <module>
  File "hascal.py", line 16, in main
  File "core/h_builder.py", line 117, in __init__
  File "core/h_help.py", line 37, in help_short
NameError: name 'exit' is not defined
[7247] Failed to execute script 'hascal' due to unhandled exception!