Giter Site home page Giter Site logo

progetto-lt's Introduction

Commento del 22/12/2021

Carico il mio progetto di Linguaggi e Traduttori, finito il 14/07/2020.
È un piccolo parser per un sottoinsieme del linguaggio C.
Leggere grammaticaParser.pdf per vederne la grammatica.

Ulteriore commento

Al tempo non sapevo che si trovassero online delle grammatiche già fatte per il C.
Il prof. non mi aveva detto nulla e io l'ho pensata partendo da zero.
Pensarla senza che ci fossero inconsistenze è stata la parte più difficile del progetto.

Una volta fatta la grammatica fare una implementazione usando solo il pattern matching credo sia la scelta più saggia.
All'inizio avevo fatto una versione piena di istruzioni condizionali, il risultato era stato 400 righe di spaghetti code mal funzionante.

Potete vedere anche voi i risultati dopo aver rivisto tutto sotto un'ottica di pattern matching, il codice è estremamente commentato.

progetto-lt's People

Contributors

cippo95 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.