GithubHelp home page GithubHelp logo

s3l's Introduction

This is a simple low level language implemented in c++ using llvm.

s3l's People

Contributors

sschellhoff avatar

Watchers

James Cloos avatar Randy Schütt avatar  avatar

s3l's Issues

declare define + call

Calling a declared function throws an error in ir builder. Declared functions must be registered before they were called.

Funktionsdefinition

Wenn eine Funktion mehrfach angelegt wird, wobei sich der Rückgabetyp unterscheidet, so werden sie als unterschiedliche Funktionsdefinition angesehen. Funktionsüberladung sollte sich nicht durch den Rückgabetyp einer Funktion unterscheiden.

Better Errorhandling in Parser

  • use exceptions for errorhandling instead of nullptr als result
  • extend Tokens for line and column information
  • show line and column on error in parser

standart return in functions

There is an error in ir generation if there is an if at the end of functions. This can be fixed with a standart return at the end of every function. This will never be called from code and is only for llvm's code generaton.

Funktionsüberladung

Funktionen sollten möglicherweise Parametertypen im Namen tragen um so Funktionsüberladung zu realisieren.

recursive functions need declaration

recursive functions shouldn't need a declaration first,
example:
test(a int) int {
if a >= 1 {
return a * test(a - 1)
}
return 1
}
should not need a forward declaration "test(a int) int;"

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.