All Projects → drifter1 → compiler

drifter1 / compiler

Licence: GPL-3.0 license
Implementing a complete Compiler for a simple C-like language using the C-tools Flex and Bison

Programming Languages

c
50402 projects - #5 most used programming language
Yacc
648 projects
Lex
420 projects

Projects that are alternatives of or similar to compiler

pascal-interpreter
A simple interpreter for a large subset of Pascal language written for educational purposes
Stars: ✭ 21 (-80.19%)
Mutual labels:  lexer, lexical-analysis, symbol-table, syntax-analysis, semantic-analysis
SwiLex
A universal lexer library in Swift.
Stars: ✭ 29 (-72.64%)
Mutual labels:  lexer, lexical-analysis, syntax-analysis
c-compiler
A compiler that accepts any valid program written in C. It is made using Lex and Yacc. Returns a symbol table, parse tree, annotated syntax tree and intermediate code.
Stars: ✭ 37 (-65.09%)
Mutual labels:  lexical-analysis, symbol-table, semantic-analysis
Re Flex
The regex-centric, fast lexical analyzer generator for C++ with full Unicode support. Faster than Flex. Accepts Flex specifications. Generates reusable source code that is easy to understand. Introduces indent/dedent anchors, lazy quantifiers, functions for lex/syntax error reporting, and more. Seamlessly integrates with Bison and other parsers.
Stars: ✭ 274 (+158.49%)
Mutual labels:  flex, lexer
alexa
A Lexical Analyzer Generator
Stars: ✭ 54 (-49.06%)
Mutual labels:  lexer, lexical-analysis
llvm-kaleidoscope
LLVM Tutorial: Kaleidoscope (Implementing a Language with LLVM)
Stars: ✭ 124 (+16.98%)
Mutual labels:  lexer, lexical-analysis
Jflex
The fast scanner generator for Java™ with full Unicode support
Stars: ✭ 380 (+258.49%)
Mutual labels:  flex, lexer
Simplec
C/C++ develop tool for android.
Stars: ✭ 105 (-0.94%)
Mutual labels:  flex, lexer
Flex
The Fast Lexical Analyzer - scanner generator for lexing in C and C++
Stars: ✭ 2,338 (+2105.66%)
Mutual labels:  flex, lexer
compiler-design-lab
These are my programs for compiler design lab work in my sixth semester
Stars: ✭ 47 (-55.66%)
Mutual labels:  lexical-analysis, compiler-design
memalloy
Memory consistency modelling using Alloy
Stars: ✭ 23 (-78.3%)
Mutual labels:  compiler-design
bit-css
用原子类赋予元素属性,减少甚至不写css
Stars: ✭ 19 (-82.08%)
Mutual labels:  flex
huffman
Huffman coding implementation in Go (Huffman tree, Symbol table, Huffman Reader + Writer).
Stars: ✭ 25 (-76.42%)
Mutual labels:  symbol-table
vue-flex-waterfall
🌊 A horizontal sorting waterfall layout component for Vue.js, realized by flex layout
Stars: ✭ 27 (-74.53%)
Mutual labels:  flex
simpPRU
Intuitive language for PRU which compiles down to PRU C
Stars: ✭ 54 (-49.06%)
Mutual labels:  flex
pyCompiler
Python Compiler
Stars: ✭ 13 (-87.74%)
Mutual labels:  compiler-design
yara-parser
Tools for parsing rulesets using the exact grammar as YARA. Written in Go.
Stars: ✭ 69 (-34.91%)
Mutual labels:  lexer
lexer
Hackable Lexer with UTF-8 support
Stars: ✭ 19 (-82.08%)
Mutual labels:  lexer
Compiler-Principle
词法分析,LL(1) 文法分析,LR(1) 文法分析
Stars: ✭ 18 (-83.02%)
Mutual labels:  compiler-design
compiler-course-project
华中科技大学编译原理实验2019
Stars: ✭ 61 (-42.45%)
Mutual labels:  compiler-design

compiler

Compiler Design Steps

A short Description of this repository:
It contains all the Code from my "Writing a simple Compiler on my own" series on Steemit (step by step / article by article), where I am implementing a complete Compiler for a simple C-like Language using the C-tools Flex and Bison and self-written Custom Structures and Code.

Articles

It's worth noting that not all articles contain actual Code. Compiler design in general is mostly about understanding how everything needs to work. After understanding the basic principle, the implementation is much easier, which is why some articles are more or less 90% theory!

Until now we covered the following...

General Knowledge and Lexical Analysis

Syntax Analysis

Semantic Analysis (1)

Intermediate Code Generation (AST)

Semantic Analysis (2)

Machine Code Generation

Next Up

What remains now is:

  • Machine Code generation in MIPS Assembly (remaining cases)
  • Various Optimizations in the Compiler's Code

After doing all that we could also get into Optimizations, Extensions and even more if you like :)

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].