Compiler of Sysy2022, a programming language for ..what?
cargo run -- <input_file>,编译指定的文件。
--parse: 输出文法解析的结果。
--llvm: 输出 llvm IR。
--riscv: 输出最终的代码。
若不指定输出模式则会发生错误。
-o: 指定输出文件,未指定则在标准输出流输出。
-Ox:指定优化方式/等级(未实现)
cargo run -- <input_file> to complie the file inputed.
--parse: Output the result of grammar prasing.
--llvm: Output in llvm IR.
--riscv: Output riscv asm code as the final output.
An error occurs in case of no output mode is specified.
-o: Specify the output file. Will output into standard output if not specified.
-Ox: Specify the optimization level. Not implemented yet!