GithubHelp home page GithubHelp logo

elakiwala / ups-ilu1-ocaml-examples Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ups-ilu/ups-ilu1-ocaml-examples

0.0 0.0 0.0 27 KB

Exemples de projets OCaml en ligne de commande

License: MIT License

OCaml 96.31% Makefile 3.69%

ups-ilu1-ocaml-examples's Introduction

ups-ilu1-ocaml-examples

Ce dépôt contient des exemples de code OCaml visant à illustrer le "parsing" de la ligne de commande et de fichiers CSV, en s'appuyant sur les connaissances acquises au terme de l'UE ILU1 (L2).

Il contient :

  • Un .gitignore utilisable pour vos projets OCaml+Java sur GitHub
  • Un dossier ocaml-cli/ contenant un projet OCaml complet,
    • avec le fichier standard OCamlMakefile téléchargé d'ici
    • et un fichier Makefile qui spécifie les sources du projet.

Environnement de développement

Ce projet ne pourra pas être lu/modifié avec Learn-OCaml : nous vous recommandons d'installer opam et tuareg :

  • Machines de TP de l'UPS → opam est préinstallé, faire
    cd ~/
    if [ -e .emacs ]; then mv -fv .emacs .emacs~; fi
    curl -fOL https://github.com/erikmd/tapfa-init.el/raw/master/.emacs
    emacs test.ml &
  • Machine personnelle (laptop) → suivre ce tutoriel d'installation.

Configuration

Pour faire cette étape, lancer dans un terminal Linux ou macOS (ou WSL sous Windows) :

cd ~/
if [ -e .opam ]; then echo OK--Sauter-cette-étape; else opam init --auto-setup --bare ; opam switch create system ocaml-system || opam switch create 4.12.1 ocaml-base-compiler.4.12.1; fi

Compilation

Pour tout compiler, ouvrir un terminal Linux ou macOS (ou WSL sous Windows) et faire :

opam install ocamlfind csv  # installe les 2 paquets OCaml dont dépend le projet
eval $(opam env)

cd ocaml-cli/
make && ./main.exe 10 20  # compile et lance le programme en lui passant 10 et 20

ups-ilu1-ocaml-examples's People

Contributors

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