Giter VIP home page Giter VIP logo

fplot's Introduction

Fplot

Un langage interpreté fortement influencé par C, R et Python.

Guide

Voici un résumé des étapes mises en place.

1 Analyse lexicale

Avec flex on traduit le flux d'entrée (lexèmes) en unités lexicales (tokens).

2 Analyse syntaxique

Avec Bison on réalise l'analyse syntaxique du flux de token suivant notre propre grammaire.

3 Construction d'un arbre de syntaxe abstrait (AST)

L'arbre de syntaxe abstrait s'obtient facilement à partir des dérivations de notre analyse grammaticale du fait du choix d'une architecture à pile. $ make display_ast permet la visualisation de l'AST.

4 Traduction en langage intermédiaire (pcodes)

Cette étape convertit l'AST en un langage d'assemblage executable dans notre partie opérationelle (PO). Celle ci est à jeu d'instructions réduit prenant 0 ou 1 argument (ex: push_cst 42, pop, add).

5 Execution des pcodes dans une architecture à pile

Pour completer notre architecture de jeu d'instructions (ISA), nous simulons une architecture à pile permettant l'éxecution de nos pcodes. Nous retrouvons ici de la mémoire (programme, variables ...), une unité arithmétique et logique (ALU) basé sur des objet de tout types, un compteur ordinal...

Usage

	make
	bin/main < fpsrc/euclide.fp

fplot's People

Contributors

pierav avatar

Stargazers

 avatar

Watchers

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