Git Product home page Git Product logo

bluec's Introduction

Description
--------------------------------------------------------------------------
This is my simple compiler. It performs lexical, grammar analysis, and then 
emit the assembly code, dump the code into plain text. At last, the 
assembly code is sended to assembly compiler "as" to generate object file.
The linker 'ld' link obj file to executable file. 
Basically, I finish the front-end and code-generation work. The executable 
file generation is handled by system software. Because to output the 
instruction to binary form and arrange the output file according to ELF 
ABI rule is a trivial thing. I omitted that. :-(


Language rule
--------------------------------------------------------------------------
The language can use/define variable, use conditional statement, define 
and call function, even though it has a lot of contraints.

To simplify the problem, I make a lots of contraints and assumptions. You
may think it's unreasonable and weird. Well, it's just a piece of work 
for fun. :-)

In fold example/, there are several simple samples to show the language's 
grammar and function.




Other things
--------------------------------------------------------------------------
I previously planed to build a complete, independent compiler. But as  the
process going on, I was busy with other affairs and found a lot of trivial
thing to build the compiler by oneself. Finally it was born like this. 

I am keen on the compiler techniques, operating system knowledge and other
low level computer science related things. Glad to communicate with peers
in these fields.

Email: [email protected]


bluec's People

Contributors

incfly avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.