Giter VIP home page Giter VIP logo

mykolav / coollang-2020-fs Goto Github PK

View Code? Open in Web Editor NEW
38.0 3.0 2.0 9.01 MB

Compiler of a small Scala subset

Home Page: https://mykolav.github.io/coollang-2020-fs/

License: MIT License

F# 46.57% Assembly 40.04% ANTLR 0.22% Shell 0.12% Batchfile 0.01% Cool 0.02% Scala 12.71% C 0.31%
compiler programming-language fsharp toy-compiler language compiler-design parsing programming-languages statically-typed x86-64

coollang-2020-fs's People

Contributors

mykolav avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

coollang-2020-fs's Issues

Asking for help

Hello!

My dream is to create a ANSI C compiler (using C#), but I'm a bit lost

Regarding the parser part, I've played with a very nice parser combinator library (https://github.com/datalust/superpower), and I really love how simple it is. But in fact, they're so simple that they aren't able to deal with left-recursion.

That's why I got interested in GLL parsers, because they said it was a way to fix the problems with parser combinators... until I find out that the literature is really complex and there isn't entry-level stuff around the Internet.

So here I am. I will investigate a bit more, but just in case you want to answer me, I would like to ask you a question:

What would you do if you were me?

I mean, would you attempt to create an ANSI C compiler back then? or maybe today you would totally reject doing that because of reasons?

What steps would you follow if you decided to go ahead?

Would you target an existing machine, like x86/x64, or invent a (invented) virtual architecture (to simplify things).

Thanks a lot!

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.