Skip to content
Python and Ocaml workshop source code.
Python OCaml HTML Smalltalk TeX
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
TP1
TP10
TP11
TP12
TP13
TP4
TP5
TP6
TP7
TP8
TP9
cahier-vacances
entrainements
option-info
physique
.gitignore
LICENSE
README.md
ocaml.st
style_modest.st

README.md

TP MPSI

Python and workshop source code.

Ocaml

To compile:

ocamlc -g td1.ml && ./a.out

Merlin

Install opam

opam init
opam install merlin

Add this line to .bashrc

test -r /home/cjung/.opam/opam-init/init.sh && . /home/cjung/.opam/opam-init/init.sh > /dev/null 2> /dev/null || true

## VSCode

To run code just by doing ctlr+enter, add to keybindings.json:

[
    {
        "key": "ctrl+enter",
        "command": "workbench.action.terminal.runSelectedText",
        "when": "editorTextFocus && editorHasSelection"
      }
]

UTop

opam install utop
eval `opam config env`  # may not be needed
utop

Enscript

Add .st files to ~/.enscript/ to have Ocaml syntax:

enscript -2rG --line-numbers -w html -p output.html --highlight=ocaml --color=1 -c input.ml 
You can’t perform that action at this time.