3 Star 4 Fork 0

non / c compiler

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
file_construction.md 1.17 KB
一键复制 编辑 原始数据 按行查看 历史
wangchen 提交于 2021-01-15 11:36 . readme

C编译器:

检查时间

词法 + 语法: 11月30日-12月7日

完整代码: 12月28日-1月4日


Get Start:

Linux:

  1. install flex   bison   nasm
sudo apt-get install flex bison nasm
  1. run compiler
make file=<filename>    // filename doesnot include .c

分析结果在当前目录下

词法分析: Lexical

语法分析: Grammatical

中间代码:InnerCode

汇编代码:assembly.asm

可执行文件:<file name>


Available keywords and operations

void main return

const static

if else for while do break continue default

(   )   [   ]   {   }

<   >   <=   >=   &&   ||   !=

+   -   *   /   %   ^ (power op)

=   +=   -=   *=   /=   %=   ++   --

int float double char

pointer typedef

input_int output_int

C
1
https://gitee.com/non925/c-complier.git
git@gitee.com:non925/c-complier.git
non925
c-complier
c compiler
master

搜索帮助