205 Commits

Author SHA1 Message Date
Gabriel Scherer
baef4b8807 use environment variables instead of hardcoded filesystem paths 2020-11-24 14:37:00 +01:00
Gabriel Scherer
e978122afe Makefile: remove -annot, add a clean target 2020-11-24 14:37:00 +01:00
Nathanaël Courant
fdf9c96657 Restore old version of interp.ml for preparing to pull gasche's changes 2020-11-24 14:33:23 +01:00
Nathanaël Courant
b9c164c017 Fix miniml compiler, make interpreter work with it 2020-11-21 17:45:10 +01:00
Nathanaël Courant
99a5f6f010 Array literals, quotes in identifiers, backslash before newline in strings 2020-11-18 16:53:14 +01:00
Nathanaël Courant
42fa033ed2 Handle escape sequences 2020-11-18 13:06:03 +01:00
Nathanaël Courant
ee38746310 try with working 2020-11-11 16:22:23 +01:00
Nathanaël Courant
de4b9ad50b 'ERecordwith 2020-11-11 13:50:22 +01:00
Nathanaël Courant
c6224cc8c1 Records, optional arguments 2020-11-11 13:20:59 +01:00
Nathanaël Courant
8f6964d45a Fix parsing of [1;2;3], compile match 2020-11-09 16:01:44 +01:00
Nathanaël Courant
61a267ee92 Fix argument order 2020-09-23 18:22:40 +02:00
Nathanaël Courant
83e9e1adea Handle functions 2020-09-23 17:54:08 +02:00
Nathanaël Courant
33a03cc343 Handle more features in compiler 2020-05-14 19:04:20 +02:00
Nathanaël Courant
5a39854c82 Able to compile simple hello world 2020-05-14 16:41:34 +02:00
Nathanaël Courant
6ff2e5ca34 Working hello world 2020-05-12 13:32:30 +02:00
Nathanaël Courant
d92d195849 Add lexer; able to produce empty ocaml bytecode 2020-05-12 12:40:58 +02:00
Nathanaël Courant
0f3de07340 Start working on scheme version of the miniml compiler: parser done 2020-02-17 16:37:40 +01:00
Ekdohibs
3fff42d128 Fix copy of byterun 2019-06-19 11:54:18 +02:00
Ekdohibs
c2b9ebcb76 make compile_ocamlc.sh executable 2019-06-12 20:16:42 +02:00
Ekdohibs
f0f9e82f01 Fix quotes 2019-06-12 15:29:52 +02:00
Ekdohibs
24f363fdba Remove need to manually patch the input path 2019-06-12 15:25:26 +02:00
Ekdohibs
6c6d0d8270 Fix incorrect location in miniml/interp/Makefile 2019-06-12 14:17:22 +02:00
Ekdohibs
0a365052bb Fix Makefile to compile dependencies 2019-06-12 14:03:42 +02:00
Ekdohibs
f3cdf68f11 Fix incorrect location of dynlink.mli in Makefile 2019-06-12 13:54:40 +02:00
Ekdohibs
0f7df4fd14 Fix a few errors in the ocamlc compile script 2019-06-08 22:13:35 +02:00
Ekdohibs
af4736c1b4 Remove unneeded miniml/asttypes.mli 2019-06-08 16:51:39 +02:00
Ekdohibs
1c0c729c96 Add script to compile ocamlc 2019-06-08 16:43:41 +02:00
Ekdohibs
099f87006e Add ocaml source as a submodule 2019-06-05 14:57:48 +02:00
Gabriel Scherer
0385b37172 fix minor Makefile bug 2019-06-01 17:45:53 +02:00
Ekdohibs
14ae294bef Miniml is finally able to correctly compile interp.ml to run the compiler 2019-02-07 22:43:05 +01:00
Ekdohibs
f892a07f23 Fix a couple more bugs 2019-02-07 08:19:50 +01:00
Ekdohibs
97dc5da6a1 Fix a couple bugs; but still unable to compile stdlib 2019-02-05 23:54:18 +01:00
Ekdohibs
5f8fb010b2 Finally able to run the compiler without any arguments 2019-02-05 20:40:14 +01:00
Ekdohibs
7c005cb6c5 Miniml is now able to compile the interpreter, but interpreter crashes while parsing 2019-02-05 14:20:34 +01:00
Ekdohibs
8677431f1f Miniml: finally able to compile the parser, but does it work? 2019-02-02 00:38:27 +01:00
Ekdohibs
4e3db63291 Miniml: support more primitives to be able to run the parser 2019-01-31 23:06:26 +01:00
Ekdohibs
8a7a3d7a05 Miniml: work towards an ocaml interpreter 2019-01-30 23:55:20 +01:00
Ekdohibs
19c97daf57 Miniml: support optional arguments with default value 2019-01-30 23:53:13 +01:00
Ekdohibs
25feb62e23 Miniml compiler: some bugfixes, handle optional arguments 2019-01-30 23:45:25 +01:00
Ekdohibs
e31f7061df miniml compiler: add handling of exceptions 2019-01-27 23:44:45 +01:00
Ekdohibs
a25f5c0f58 Add more features to miniml 2019-01-27 00:59:08 +01:00
Ekdohibs
3e62d92cbe Some cleanup of interpreter 2019-01-27 00:58:41 +01:00
Ekdohibs
5e8edf86c7 More cleanup: remove "module modifiers" 2019-01-23 23:29:15 +01:00
Ekdohibs
e8973483cd Clean up dead code 2019-01-23 23:20:35 +01:00
Ekdohibs
63b68bb8d8 Interpreter finally able to compile ocamlc 2019-01-23 21:58:15 +01:00
Ekdohibs
3d4ee6f769 Interpreter: try to directly use ML values 2019-01-23 15:22:03 +01:00
Ekdohibs
896e7ab019 Miniml: bugfixes, extend parser&lexer 2019-01-20 17:20:47 +01:00
Ekdohibs
5120d27792 Miniml: first try 2019-01-15 23:53:45 +01:00
Ekdohibs
f8f186f9ca Start working on a C version 2019-01-10 00:09:24 +01:00
Ekdohibs
89a799e20a A couple more changes 2019-01-10 00:08:17 +01:00