Coder Social home page Coder Social logo

iviosab / carbonic-c Goto Github PK

View Code? Open in Web Editor NEW
8.0 8.0 1.0 838 KB

Lightweight Pascal/Oberon-like imperative programming language

License: BSD 3-Clause "New" or "Revised" License

Lex 3.88% Makefile 0.64% C++ 92.37% CMake 3.11%
bison cmake compiler cpp flex lex llvm yacc

carbonic-c's People

Contributors

asem-abdelhady avatar iviosab avatar kuronosangatsu7 avatar path242 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

carbonic-c's Issues

[Lexical Analyzer] lexer bugs

some of the rules are written incorrectly

tokens.l:39: warning, rule cannot be matched
tokens.l:40: warning, rule cannot be matched
tokens.l:42: warning, rule cannot be matched
tokens.l:44: warning, rule cannot be matched
tokens.l:46: warning, rule cannot be matched
tokens.l:48: warning, rule cannot be matched
tokens.l:49: warning, rule cannot be matched
tokens.l:50: warning, rule cannot be matched
tokens.l:51: warning, rule cannot be matched
tokens.l:52: warning, rule cannot be matched
tokens.l:53: warning, rule cannot be matched
tokens.l:54: warning, rule cannot be matched
tokens.l:55: warning, rule cannot be matched
tokens.l:56: warning, rule cannot be matched
tokens.l:57: warning, rule cannot be matched
tokens.l:58: warning, rule cannot be matched
tokens.l:60: warning, rule cannot be matched
tokens.l:61: warning, rule cannot be matched
tokens.l:62: warning, rule cannot be matched
tokens.l:63: warning, rule cannot be matched
tokens.l:64: warning, rule cannot be matched
tokens.l:65: warning, rule cannot be matched
tokens.l:66: warning, rule cannot be matched
tokens.l:67: warning, rule cannot be matched
tokens.l:68: warning, rule cannot be matched

Parser file and lexer header not completed

I have added a template for the parser file and lexer.h that we should follow to be able to implement the parser. I also added comments in the files and a todo file. Everything should be visible in the parser branch. Please pull the branch to your local machine and see the changes. Warning! Make sure you pull the origin main to the local main so we don't have problems when we try to merge the parser branch to the main in the future.

Add debug mode

When run with a specific flag the lexer/whatever else would output tokens or whatever would make debugging easier for the developer

Update Docs

The documentation is deprecated. It should be updated to accommodate for the new technical requirements and provide instructions on how to run the compiler and its components.

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.