ocaml / oloop

Evaluate code through the OCaml toploop for inclusion in educational material.
ISC License
12 stars 5 forks source link

improve ocaml file parser #2

Closed agarwal closed 9 years ago

agarwal commented 9 years ago

Right now we represent with type (float * string) list, which associates part numbers with the content of that part. We probably also want to detect which phrases are directives vs regular OCaml code.

Chris00 commented 9 years ago

Why? I mean, if it is to silence the directives, this is not necessary. In any case, the directives need to end with ;; (and thus be treated as separate phrases) or else an error will be returned.

agarwal commented 9 years ago

Done in 89ac6eac2094e162e9158c68054ff67ac45310e6. We don't parse out directives yet. If that does end up being needed, we can open another issue.