Giter Club home page Giter Club logo

sysprog's People

Contributors

bl4ck92 avatar holger2101 avatar maikefer avatar patronkoe avatar tobscore avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

ppyenqq

sysprog's Issues

Heisenbug with EOF Token

Sometimes the EOF of a file cannot be read correctly, but this bug only occurs sometimes. An example build is here.

Leerzeilen werden nicht erkannt

In der Datei testProgramm.txt befindet sich in Zeile 5 eine Leerzeile, also eine Zeile ohne Inhalt.
Der Scanner erkennt diese Leerzeile nicht, der Zeilenzähler wird also nicht hochgezählt. Somit ist die Position der nachfolgenden Tokens nicht mehr korrekt.

Recognize erroneous characters

There needs to be better error handling. If the program tries to read some unknown character, an error token with the unknown character needs to created.

Fails to read in really large files

It's not possible to read in the bible or other large files. Somehow the program ends up in an infinite loop.

The reason for this is unknown. This case will be tested against, so this needs to be fixed.

Comments aren't recognized correctly.

Check out Commit 59506b0 to see a test case, that would fail.

      Expected: "Kommentar"
To be equal to: static_cast<IdentifierToken*>(token)->getLexem()
      Which is: "11111aaaaaKommentar"

Throw an error when an integer is too big

Our scanner still recognizes large integers and tries to convert the string representation of those integers to actual integers (or in our case long long int).

An error should be thrown, when trying to read in numbers which are to big to be cast to an integer.

Dynamically allocate Buffer in toString method

One of the test cases checks how our program handles really big identifiers. In order to enhance the memory usage of the program and avoid possible bugs, the buffer size needs to be allocated dynamically, meaning that its size needs to be calculated in accordance to the identifier in the token.

Use git submodule for google-test library

Currently the google test framework has been copied in the lib folder. In order to have the latest and greatest Google Test Version, this could be optimized by using git submodules.

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.