Main¶
Arx main module.
ArxMain
¶
The main class for calling Arx compiler.
Source code in src/arx/main.py
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 |
|
compile(show_llvm_ir=False)
¶
Compile the given input file.
Source code in src/arx/main.py
81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 |
|
run(*args, **kwargs)
¶
Compile the given source code.
Source code in src/arx/main.py
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
|
run_shell()
¶
Open arx in shell mode.
Source code in src/arx/main.py
77 78 79 |
|
show_ast()
¶
Print the AST for the given input file.
Source code in src/arx/main.py
48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
|
show_llvm_ir()
¶
Compile into LLVM IR the given input file.
Source code in src/arx/main.py
73 74 75 |
|
show_tokens()
¶
Print the AST for the given input file.
Source code in src/arx/main.py
63 64 65 66 67 68 69 70 71 |
|
get_module_name_from_file_path(filepath)
¶
Return the module name from the source file name.
Source code in src/arx/main.py
15 16 17 |
|