1
1
mirror of https://github.com/kanaka/mal.git synced 2024-10-27 14:52:16 +03:00
Commit Graph

3701 Commits

Author SHA1 Message Date
OldLiu
0ed5b5121f vbs: add prn println str prn-str 2024-08-15 09:15:44 -05:00
OldLiu
89ff2dea63 vbs: fix evaluater's bug (create instead modify a list) 2024-08-15 09:15:44 -05:00
OldLiu
f1eb294ece vbs: add some functions 2024-08-15 09:15:44 -05:00
OldLiu
7136b8d877 vbs: rewrite step4 1 2024-08-15 09:15:44 -05:00
老刘
b77851c0b9 vbs: rewrite step3 & fix bugs 2024-08-15 09:15:44 -05:00
老刘
ed793f2046 vbs: Rewrite step2 2024-08-15 09:15:44 -05:00
老刘
d9f5be1700 vbs: new file 'types.vbs' & fix bugs & rewrite 2024-08-15 09:15:44 -05:00
老刘
2731ad293a vbs: rewrite step0 & 1 2024-08-15 09:15:44 -05:00
老刘
ffd110e0da vbs: rewrite codes 2024-08-15 09:15:44 -05:00
老刘
40e4bf6b72 vbs: env hotfix
combine env(when fn created) and running env into one
2024-08-15 09:15:44 -05:00
老刘
1a9d82ddde vbs: fix env's big bug
Env binding should happen in function calling
2024-08-15 09:15:44 -05:00
OldLiu
c458f9703f vbs: fix fn* calling bug which evaluate code twice 2024-08-15 09:15:44 -05:00
OldLiu
6649394940 vbs: core miss, added 2024-08-15 09:15:44 -05:00
OldLiu
ea478ced0f vbs: add step4(have some bugs) 2024-08-15 09:15:44 -05:00
OldLiu
3d43a1c92f vbs: step4 init:1 2024-08-15 09:15:44 -05:00
OldLiu
b535ffc66b vbs: step4 init: 2024-08-15 09:15:44 -05:00
OldLiu
054597e239 vbs: fix step3 2024-08-15 09:15:44 -05:00
OldLiu
0b7713a8f4 vbs: fix error dealing 2024-08-15 09:15:44 -05:00
OldLiu
1837f871f1 vbs: rewrite 3 2024-08-15 09:15:44 -05:00
OldLiu
e3ed41755d vbs: rewrite code 2 2024-08-15 09:15:44 -05:00
OldLiu
05cec5662d vbs: rewrite code1 2024-08-15 09:15:44 -05:00
OldLiu
01f5ba3cf6 vbs: finish step2 2024-08-15 09:15:44 -05:00
OldLiu
f1a92861b5 vbs: fix hashtable, string, error handle 2024-08-15 09:15:44 -05:00
OldLiu
fb18d41e3e vbs: add extra code data detect 2024-08-15 09:15:44 -05:00
OldLiu
4e3bfa14e2 vbs: add error handling,macros, string, boolean, null 2024-08-15 09:15:44 -05:00
OldLiu
e0cb478dea vbs: vbs step 0&1 2024-08-15 09:15:44 -05:00
OldLiu
72ff664c6d vbs: batch impl init 2024-08-15 09:15:44 -05:00
Joel Martin
0d32585d6b python.2: fix self-host by adding fn?, macro?.
Also add number? and string? which aren't technically required for
self-host but are easy to implement.
2024-08-14 13:24:37 -05:00
Joel Martin
c4ab84b116 tests/stepA: fn?, macro? required for self-host.
- fn? required here: 3f6a40f708
- macro? required here: af2279d18d
2024-08-14 13:24:37 -05:00
Joel Martin
99d3ce5464 haxe: fix core readline function: print prompt
Use the prompt provided as a parameter and not just "user> ".
2024-08-13 14:59:18 -05:00
Joel Martin
d1afe8ddb5 awk: fix regex warnings (extraneous escaping) 2024-08-13 14:59:18 -05:00
Joel Martin
e62567fb8f awk: disable env/types debug to fix self-host tests 2024-08-13 14:59:18 -05:00
Joel Martin
ce36490541 GHA: ensure self-host by checking prompt. 2024-08-13 14:59:18 -05:00
Joel Martin
c76aa8c34b tests/step1: add list within list quasiquote test. 2024-08-13 10:00:18 -05:00
Joel Martin
5463dfac6b Port diagrams to drawio. Update with eval_ast/macro changes.
This incorporates various updates to the diagrams.
* The largest change is the incorporation of the new process where
  eval_ast is integrated into eval and the macroexpand function and has
  been incorporated directly into the eval TCO loop and no longer
  requires a separate function or special form. For the most part, this
  change was discussed in https://github.com/kanaka/mal/issues/587 and
  implemented in https://github.com/kanaka/mal/pull/592. Instead of
  a special form, there is now a "apply macro" box in the eval block.
  The "apply macro" box has a TCO line (but not env creation line unlike
  the "apply" box.
* Change the "eval_ast" sub-block to "evaluate" and convert the list of
  evaluated items to individual blocks. Add a "list" block and connect
  this to the "apply" block (rather than connecting eval_ast to eval).
* Change the "symbol lookup" arrow to point to the "symbol" box in the
  "evaluate" block instead of pointing to the "evaluate" block.
* Update the "create env" arrows to point to the child env box instead
  of the root/REPL env box.
* Add try/catch TCO line.
* Remove the `or` macro and `gensym` function from stepA since this has
  been dropped for a while.
2024-08-13 09:27:45 -05:00
Joel Martin
4db37829ef README: update counts to include LaTeX3. 2024-08-12 14:53:04 -05:00
Garklein
82b5f367a2
Add expected result for fn/hash-map interaction test 2024-08-09 16:29:50 -07:00
Adam Gashlin
e8179fbb8f
Fixes for guide text (#611)
* Fixes for typos and grammar

* Remove -rp from diff command line. These flags don't make sense on single pseudocode text files.
2024-08-09 16:02:38 -07:00
Denis Fuenzalida
a1f1a72d2b Generalize note for with-meta (guide, Step A)
The bullet point for `with-meta` describes how to implement it for Mal functions, but it's applicable to all Mal types, while the last sentence can be reordered to emphasize the details specific to metadata on functions.
2024-08-09 17:49:26 -05:00
Jordi Iñigo
47395d754d pprint properly prints hash-maps 2024-08-09 17:40:29 -05:00
Joel Martin
ba0159031f GHA: add self-hosted workflow input. 2024-08-08 15:51:13 -05:00
Joel Martin
f5d6d0e1e2 get-ci-matrix.py: ignore IMPLS.yml and Makefile.impls
This isn't a perfect solution because if somebody pushes a new
implementation and then later pushes the updates to these files, it
probably won't trigger any implementations. However, the workflow can
always be manually triggered for a specific implementation and branch so
that's probably okay. At least this way, the addition of a new
implementation won't always trigger every other implementation to be
tested.
2024-08-08 15:42:21 -05:00
Nicolas Boulenguez
205cf51a7d latex3: require ubuntu:24.04 in the Dockerfile 2024-08-08 15:40:26 -05:00
Nicolas Boulenguez
6b8424bf92 latex3: add non-interactive apt-get option to Dockerfile 2024-08-08 15:40:26 -05:00
Nicolas Boulenguez
e28b72752e latex3: fix time-ms from seconds to milliseconds, register in IMPLS.yml 2024-08-08 15:40:26 -05:00
Nicolas Boulenguez
00d168fdca latex3: new implementation
Self hosting fails at step4 because of exceeded TeX capacity.
2024-08-08 15:40:26 -05:00
Nicolas Boulenguez
5808977f9f tests: improve consistency with the key not found error message
Never require quotes around the symbol.
2024-08-08 15:40:26 -05:00
Nicolas Boulenguez
24d82e4fcf wasm: prevent macros from mutating functions 2024-08-08 14:05:01 -05:00
Nicolas Boulenguez
91f9877935 wasm: backport recent changes to steps0-9 2024-08-08 14:05:01 -05:00
Nicolas Boulenguez
0125507b0f wasm: merge EVAL_AST into EVAL
EVAL_AST is kept but only applies to sequences
2024-08-08 14:05:01 -05:00