All Projects → FlyAndNotDown → c-compiler-frontend

FlyAndNotDown / c-compiler-frontend

Licence: MIT license
💻NUAA 2017 编译原理 - C(缩减)语言编译器前端 - Python

Programming Languages

python
139335 projects - #7 most used programming language
c
50402 projects - #5 most used programming language

Projects that are alternatives of or similar to c-compiler-frontend

postcss-jsx
PostCSS syntax for parsing CSS in JS literals
Stars: ✭ 73 (+65.91%)
Mutual labels:  syntax
nord-notepadplusplus
An arctic, north-bluish clean and elegant Notepad++ theme.
Stars: ✭ 112 (+154.55%)
Mutual labels:  syntax
pyhaystack
Pyhaystack is a module that allow python programs to connect to a haystack server project-haystack.org. Connection can be established with Niagara Platform running the nhaystack, Skyspark and Widesky. For this to work with Anaconda IPython Notebook in Windows, be sure to use "python setup.py install" using the Anaconda Command Prompt in Windows.…
Stars: ✭ 57 (+29.55%)
Mutual labels:  semantic
laravel-or-abort
A trait to optionally abort a Laravel application
Stars: ✭ 54 (+22.73%)
Mutual labels:  syntax
JMantic
Java library for connecting to sc-machine
Stars: ✭ 14 (-68.18%)
Mutual labels:  semantic
opentrack-cg
Repository for OpenTrack Community Group
Stars: ✭ 21 (-52.27%)
Mutual labels:  semantic
berkeley-parser-analyser
A tool for classifying mistakes in the output of parsers
Stars: ✭ 34 (-22.73%)
Mutual labels:  syntax
language-rust
Parser and pretty-printer for the Rust language
Stars: ✭ 78 (+77.27%)
Mutual labels:  syntax
colocat
Fegeya Colocat, Colorized 'cat' implementation. Written in C++17.
Stars: ✭ 14 (-68.18%)
Mutual labels:  syntax
calamity-atom
A purple dark theme with medium to high contrast for the Atom editor ⚛️
Stars: ✭ 12 (-72.73%)
Mutual labels:  syntax
OLGA
an Ontology SDK
Stars: ✭ 36 (-18.18%)
Mutual labels:  semantic
explain-rs
A library which finds language features in rust code and provides resources on them.
Stars: ✭ 38 (-13.64%)
Mutual labels:  syntax
syntax highlighter
Syntax Highlighter for Dart/Flutter Code
Stars: ✭ 28 (-36.36%)
Mutual labels:  syntax
nova-vue
Vue support for Nova editor.
Stars: ✭ 35 (-20.45%)
Mutual labels:  syntax
nord-atom-syntax
An arctic, north-bluish clean and elegant Atom syntax theme.
Stars: ✭ 72 (+63.64%)
Mutual labels:  syntax
awesome-nuaa-cs-kaoyan
熊二:南航计算机考研 专业课资料 和 信息汇总.
Stars: ✭ 328 (+645.45%)
Mutual labels:  nuaa
cheatsheet-python-A4
📖 Advanced Python Syntax In A4
Stars: ✭ 96 (+118.18%)
Mutual labels:  syntax
react-semantic-redux-form
Semantic-ui-react components integration with Redux form
Stars: ✭ 57 (+29.55%)
Mutual labels:  semantic
v-semantic
Semantic-ui2 + vue2
Stars: ✭ 23 (-47.73%)
Mutual labels:  semantic
chestnut.vim
Minimal syntax highlighting for 16-color terminals.
Stars: ✭ 31 (-29.55%)
Mutual labels:  syntax

C(缩减版)语言编译器前端

是什么

NUAA 2017年编译原理课设,词法分析使用正则表达式,语法分析使用LL(1)文法分析器, 语义分析使用自上而下翻译,使用 Python 语言编写,面向配置化,稍加改造可以适用其他文法

怎么使用

git clone https://github.com/FlyAndNotDown/CSub-CompilerFrontend.git

在 PyCharm 中打开新建项目导入代码即可,Python 使用版本为 3 以上,请不要使用 Python2 运行该项目

代码结构说明

  • main.py 编译器主程序
  • error.py 存放错误相关的类和代码
  • test.c 要编译的文件
  • lexical 词法分析
  • syntax 语法分析
  • semantic 语义分析

另外,三大分析中 rule.py 即是支持编译器的所有文法、词法、语义规则,加以改动即可面向一些其他的文法和语言使用

关于

NUAA 161520311 John Kindem

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].