Giter Club home page Giter Club logo

lsystems's Introduction

Project Functionnal Programming 2020: L-systems

This project was undertaken as part of my final year, in Licence 3 (equivalent to the last year of Bachelor in France) at University Paris Diderot within the scope of a functional programming course.

Submission and Evaluation Guidelines

See CONSIGNES.md

Prerequisites to Install

See INSTALL.md

  • ocaml, of course
  • dune and make are highly recommended
  • graphics library if not already included with ocaml

Compilation and Execution

By default, make is used to abbreviate the dune commands (see Makefile for more details):

  • make without arguments will compile main.exe using dune, which is your program in native code.

  • make byte will compile to bytecode if necessary, useful for running your code in an OCaml toplevel, see lsystems.top.

  • make clean to remove the temporary _build directory produced by dune during its compilations.

Finally, to run your program: ./run arg1 arg2 ...

Interactive Testing in emacs

Your program must have been compiled using make byte. You should have emacs installed, as well as an OCaml mode for emacs, such as tuareg-mode.

  • In an external file start.ml outside the project directory, for example above the projet directory, copy the contents of lsystems.top without its first directive (#ocaml init). Add to the #directory directives the necessary prefixes to access the same directories (for example projet/ if you are above projet).

  • In the same directory, open your test file under emacs. Start it with #use "start.ml;;". Simply evaluate this directive, which will launch the interpreter: you can then perform your tests.

If the program is recompiled (always using make byte), you will need to interrupt the interpreter with the #quit;; directive and then restart it by reevaluating #use "start.ml;;".

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.