Commit Graph

809 Commits

Author SHA1 Message Date
Erik Svedäng
dfdc24c46e
Merge pull request #789 from scolsen/prim-howto
Add mini-guide on implementing primitives
2020-05-12 20:07:41 +02:00
Erik Svedäng
2121b87151
Merge pull request #787 from hellerve/veit/add-new-asserts
Add assert-ref-equal, assert-just, and assert-nothing
2020-05-12 19:59:36 +02:00
scottolsen
b329f851d6 Fix typos, better headings, etc. 2020-05-12 13:19:05 -04:00
scottolsen
cc427f78ef Fix some formatting issues 2020-05-12 11:32:57 -04:00
scottolsen
40dc1b154f Add mini-guide on implementing primitives 2020-05-12 11:29:37 -04:00
hellerve
9e2c2fe2fd test: add assert-ref-equal, assert-just, and assert-nothing 2020-05-12 14:53:42 +02:00
hellerve
fce423aee9 core: move as many templates as possible out of the compiler 2020-05-12 12:44:17 +02:00
Erik Svedäng
e9f5863114
Merge pull request #785 from hellerve/veit/edit-hacking
Edit hacking
2020-05-12 12:02:16 +02:00
hellerve
ba172b2d76 doc: clarified function of expand in hacking 2020-05-12 11:36:48 +02:00
hellerve
4f97404105 docs: unify src locations in hacking.md 2020-05-12 11:34:44 +02:00
Erik Svedäng
0f461dd011
Merge pull request #771 from hellerve/veit/pattern-substitute-docs
Mention backreferences in docs for Pattern.substitute
2020-05-12 11:33:17 +02:00
Erik Svedäng
0b24bad6a4
Merge pull request #770 from jacereda/fix708
Fix unicode handling
2020-05-12 11:32:32 +02:00
Scott Olsen
ba20770854 Fix typos 2020-05-11 20:12:11 -04:00
scottolsen
5b117e1d2d Add hacking doc 2020-05-11 17:25:15 -04:00
Jorge Acereda
9b08b6df3c Merge 2020-05-11 16:10:35 +02:00
Erik Svedäng
54bedb9389 Generate docs again. 2020-05-11 15:07:45 +02:00
Erik Svedäng
bfb4bb6e30
Merge pull request #781 from TimDeve/git-bash
Makes test bash script running on MSYS/Git Bash
2020-05-11 14:58:56 +02:00
Tim Deve
8e6d9e5060 Updates expected because the switch from λ to Fn 2020-05-11 13:06:10 +01:00
Erik Svedäng
7dc1b8a60d Remove Presentation.md, will move it to separate repo. 2020-05-11 14:05:37 +02:00
Scott Olsen
ee65a81e4d Remove Interop doc -- it's not ready!! 2020-05-10 23:52:18 -04:00
Scott Olsen
40cac423aa Add small note on polymorphic constructor syntax 2020-05-10 23:46:57 -04:00
hellerve
57be1e7f4e core: mention backreferences in substitute docs 2020-05-10 12:20:26 +02:00
Erik Svedäng
849bf7b23b
Merge pull request #766 from hellerve/veit/deftamplate-docs
Add deftemplate docs
2020-05-09 09:03:47 +02:00
hellerve
efe24ed809 docs: add deftemplate 2020-05-09 00:24:18 +02:00
hellerve
86b304dfbc embedded: flesh out intro more 2020-05-08 23:23:01 +02:00
hellerve
6a46c22114 docs: add embedded doc 2020-05-08 23:13:51 +02:00
hellerve
fe9d6050b5 primitives: fix example usage string 2020-05-08 12:19:34 +02:00
hellerve
2fcccdc87d commands: fix example usage string 2020-05-08 12:18:43 +02:00
hellerve
b27fa1dec5 commands: document and enforce documentation on registration 2020-05-08 12:14:20 +02:00
Erik Svedäng
fadfa151ba Documentation for renaming types with register-type. 2020-05-06 11:53:37 +02:00
Erik Svedäng
e13048687e Remove test log. 2020-05-06 10:56:11 +02:00
Erik Svedäng
870d549da9 Merge branch 'master' into do-not-reload-core-libs 2020-05-06 10:08:56 +02:00
Erik Svedäng
1ce8ccffd2
Merge pull request #749 from hellerve/veit/add-env-to-macro-docs
Mention environment in macro docs
2020-05-05 15:34:35 +02:00
hellerve
83b0201cd8 docs: mention environment in macro docs 2020-05-05 15:21:36 +02:00
Erik Svedäng
78f85d73c1
Merge pull request #747 from hellerve/veit/better-dynamic-tests
Better dynamic tests
2020-05-05 15:20:08 +02:00
hellerve
4e711a4eb0 core: add docs for any? and all? 2020-05-05 15:19:43 +02:00
hellerve
80d1086cb7 tests: better dynamic tests 2020-05-05 15:09:18 +02:00
Erik Svedäng
ca804beace Added support for (load-once). 2020-05-05 15:00:57 +02:00
Erik Svedäng
6f70dbd18e Merge branch 'master' into match-on-refs 2020-05-05 13:57:58 +02:00
Erik Svedäng
9951468a5a
Merge pull request #742 from hellerve/veit/fix-719
Make primitives proper AST objects
2020-05-05 09:45:00 +02:00
hellerve
5838136f83 core: rename dynor and dynand and check in docs 2020-05-04 23:47:06 +02:00
Erik Svedäng
a49a28575f Docs. 2020-05-04 13:20:53 +02:00
Tim Dévé
da98a770be Adds StaticArray nth & contains? 2020-05-04 09:35:39 +01:00
Tim Dévé
5965b098bb Adds StaticArray reverse! 2020-05-04 09:35:39 +01:00
Tim Dévé
b5d363c85e Adds StaticArray minimum & maximum 2020-05-04 09:35:39 +01:00
Tim Dévé
27ce300648 Adds StaticArray first, unsafe-first, last & unsafe-last 2020-05-04 09:35:39 +01:00
Tim Dévé
b87fd0911c Adds StaticArray find & find-index 2020-05-04 09:35:39 +01:00
Tim Dévé
ce3f53518f Adds StaticArray empty? any? & all? 2020-05-04 09:35:39 +01:00
Tim Deve
85abcbbf0a Adds Array.from-static function 2020-05-04 09:35:37 +01:00
hellerve
425cc96c2e docs: update for primitives 2020-05-04 00:16:26 +02:00
hellerve
a761b561e3 all: use dynor and dynand 2020-05-01 12:50:31 +02:00
Erik Svedäng
1eaebb7d33 Make it possible to turn off loading of profile.carp, useful for
tests (especially the --no-core one).
2020-04-30 15:01:30 +02:00
hellerve
7eaa30d663 core: remove result.zero 2020-04-30 14:40:01 +02:00
hellerve
2b8fa4d2a1 add test cases for zero in maybe and result 2020-04-30 14:33:18 +02:00
hellerve
a06c1dc91c core: change maybe and result to match on refs if possible 2020-04-30 12:57:27 +02:00
Erik Svedäng
54b3e6fcfe Some docs. 2020-04-29 10:43:42 +02:00
Erik Svedäng
89dcad4e79 Merge branch 'master' into static-arrays 2020-04-29 10:39:44 +02:00
Erik Svedäng
00543a758a Docs. 2020-04-28 10:06:28 +02:00
Erik Svedäng
14b608a36e Static array kinda works now. 2020-04-28 10:06:17 +02:00
Erik Svedäng
a015d7681c Docs 2020-04-24 23:21:09 +02:00
Erik Svedäng
ad1539a4dd
Update Embedded.md 2020-04-21 07:46:59 +02:00
Erik Svedäng
5bff821746
Update Embedded.md 2020-04-21 07:46:40 +02:00
Erik Svedäng
732ab0068b Embedded docs. 2020-04-21 07:45:27 +02:00
Erik Svedäng
42ee5b838a Docs 2020-04-20 23:14:52 +02:00
hellerve
e183c9a4db docs: enumerate special forms 2020-04-19 17:35:59 +02:00
hellerve
b3e2f1fdab docs: incorporate feedback by @scolsen 2020-04-17 18:34:20 +02:00
hellerve
d4c1c8cd80 docs: add expanding macro shortcut 2020-04-17 17:49:56 +02:00
hellerve
9e5ed2a37b docs: update manual with new functionality 2020-04-17 17:49:02 +02:00
hellerve
97b3ab1343 docs: add diagrams 2020-04-17 17:27:43 +02:00
hellerve
66e3b1e27c docs: add inner workings to macro docs 2020-04-17 17:25:53 +02:00
Erik Svedäng
dc117c4bd3 Docs 2020-04-17 14:46:24 +02:00
Erik Svedäng
3b1c9607c8
Merge pull request #695 from hellerve/veit/new-evaluator
New evaluator
2020-04-17 14:45:30 +02:00
hellerve
699ff4784b docs: add first draft of macros doc 2020-04-17 11:58:28 +02:00
hellerve
fd78bf07a9 eval: feature parity 2020-04-17 11:56:05 +02:00
Erik Svedäng
5a39e8e0c7 Merge branch 'master' of https://github.com/carp-lang/Carp 2020-04-14 10:24:10 +02:00
Erik Svedäng
c9c24c333a Docs 2020-04-14 10:24:01 +02:00
Tim Dévé
eccd2103df Adds fn Pointer.to-value to get a value out of Ptr 2020-04-10 11:44:27 +01:00
Erik Svedäng
0c0130bcb2 Docs on where to find profile.carp on Windows. 2020-04-06 09:36:11 +02:00
Erik Svedäng
f9ab7df2da Byte literal explanation. 2020-04-06 08:37:43 +02:00
Erik Svedäng
3e3652ab71 Doc for Byte type. 2020-04-06 08:36:35 +02:00
Erik Svedäng
a6000ea3b0 Docs 2020-04-06 08:25:01 +02:00
Erik Svedäng
d58af3daa4 Updated outdated docs regarding foreach. 2020-03-25 14:18:13 +01:00
Erik Svedäng
ca57ee4adb Clarification regarding global variables in libraries. 2020-03-23 10:34:49 +01:00
Erik Svedäng
41b450873e Carp init globals function call. 2020-03-23 10:31:58 +01:00
Erik Svedäng
0b3997cd10 Docs. 2020-02-21 13:26:17 +01:00
Erik Svedäng
b88479ee64 Docs. 2020-02-21 10:21:14 +01:00
Erik Svedäng
117583c836 Don't use bulletpoints for questions. 2020-02-14 15:48:18 +01:00
Erik Svedäng
ede6f24e69 Answers to some questions. 2020-02-14 15:41:08 +01:00
Erik Svedäng
6478a0aafb Two more questions. 2020-02-14 13:40:53 +01:00
Erik Svedäng
780aafe081 Long docs. 2020-02-14 10:48:18 +01:00
hellerve
ee812b37e6 core: make subarry/substring slice 2020-02-11 09:09:30 +01:00
Erik Svedäng
f63f4c54ad Merge branch 'master' of https://github.com/carp-lang/Carp 2020-02-10 09:51:25 +01:00
Erik Svedäng
2f6dfdec6f Docs 2020-02-10 09:51:17 +01:00
Stuart Dilts
eb9a8ae9da
Add Types section to DynamicSemantics.md 2020-02-08 09:35:54 -07:00
Stuart Dilts
0c96f0c2e1
Update docs/DynamicSemantics.md
Co-Authored-By: bjorn3 <bjorn3@users.noreply.github.com>
2020-02-07 13:28:43 -07:00
Stuart Dilts
20e3d51815
Add more questions and definitions 2020-02-07 13:01:23 -07:00
Stuart Dilts
3c36a27c30
Add some sections and what should go into them
+ List related issues at the top of each major section.
+ Specify what should go into each section by specifying questions that need to be answered
2020-02-07 11:50:06 -07:00
Erik Svedäng
8565835d65 Moved lifetime parameter of Fn/λ to the end. 2020-02-07 17:09:23 +01:00
Erik Svedäng
b7de401b82 Fixed broken code because of unsafe-nth. 2020-02-07 15:06:21 +01:00
Erik Svedäng
4fe7ea072b Merge branch 'master' into lifetimez-with-lambdas 2020-02-07 14:34:13 +01:00
Erik Svedäng
fa0f347fa8 Add DynamicSemantics.md 2020-02-07 11:06:51 +01:00
Scott Olsen
7f848c6daf Fix small typo in docs/Memory.md 2020-02-04 14:48:32 -05:00
Erik Svedäng
73ce905550 Docs 2020-02-04 10:06:16 +01:00
Erik Svedäng
153f0fb4f6 Docs 2020-01-27 10:15:04 +01:00
Erik Svedäng
ea045be426 Merge branch 'byte-type' of https://github.com/hellerve/Carp into hellerve-byte-type 2020-01-27 10:10:58 +01:00
Erik Svedäng
4801fec15d Merge branch 'veit/apply-ref' of https://github.com/hellerve/Carp into hellerve-veit/apply-ref 2020-01-27 10:07:50 +01:00
hellerve
95739d0cea core: add IO.getenv 2020-01-25 14:23:14 +01:00
hellerve
3ebe10d587 core: make Maybe.apply take function ref 2020-01-25 14:08:37 +01:00
Erik Svedäng
773824f5e7 Merge branch 'master' of https://github.com/hellerve/Carp 2020-01-23 10:12:34 +01:00
hellerve
09404798c2 core: add Result.map-error 2020-01-22 12:36:03 +01:00
Erik Svedäng
93adc836e0 Docs. 2020-01-20 10:19:17 +01:00
Erik Svedäng
bd397f8d50
Merge pull request #635 from hellerve/string-from-cstr
core: add String.from-cstr
2020-01-15 09:44:05 +01:00
Erik Svedäng
c4a176fac5 Merge branch 'master' of https://github.com/carp-lang/Carp 2020-01-14 10:52:24 +01:00
Erik Svedäng
ea3a957ff9 Docs. 2020-01-14 10:38:33 +01:00
hellerve
cd0c09da3f core: add String.from-cstr 2020-01-13 22:49:23 +01:00
hellerve
40f3975937 core: make result functions take refs 2020-01-13 22:40:20 +01:00
Erik Svedäng
0eddb4d276 Docs. 2020-01-07 10:39:53 +01:00
Erik Svedäng
a6fb8c2515
Merge pull request #625 from hellerve/map->
RFC: Add Array.unreduce
2019-11-27 10:58:27 +01:00
Erik Svedäng
44e5a89019 Docs. 2019-11-25 12:58:42 +01:00
Erik Svedäng
c0bb7692ba Merge branch 'master' of https://github.com/carp-lang/Carp 2019-11-25 12:43:48 +01:00
Erik Svedäng
a344924ba2 Docs 2019-11-25 12:43:41 +01:00
Erik Svedäng
cf276f4488
Merge pull request #608 from hellerve/pointer-arith
Add pointer arithmetic
2019-11-25 12:36:10 +01:00
Erik Svedäng
576dad0984 Merge branch 'master' into lifetimez-with-lambdas 2019-11-25 12:22:04 +01:00
hellerve
b1b84c8e3a core: rename map-> to unreduce 2019-11-21 11:05:21 +01:00
hellerve
48b8b4ec13 core: add Array.map-> 2019-11-13 10:47:22 +01:00
GrayJack
ea2e56ced0 Docs: Tooling: Fix missing period 2019-11-05 13:37:35 -03:00
GrayJack
4e39cbec1e Docs: Tooling: Make clear that language-carp is only for highlight 2019-11-04 20:10:40 -03:00
GrayJack
2011930acf Docs: Tooling: Fix a typo 2019-11-04 19:59:11 -03:00
GrayJack
315f419437 Docs: LanguageGuide: Add use special form 2019-11-04 06:47:42 -03:00
GrayJack
8c2c02a0be Docs; LanguageGuide: Add with special form 2019-11-04 06:23:14 -03:00
GrayJack
f7e5f4442b Docs: LanguageGuide: Show example os simplified enumeration sumtype 2019-11-04 06:13:24 -03:00
GrayJack
a4c59adfdd Docs: LanguageGuide: change match comment 2019-11-04 04:14:36 -03:00
GrayJack
6d69c6252c Docs: LanguageGuide: Fix some errors noticed by reviewer 2019-11-04 03:19:40 -03:00
GrayJack
e5114ab8f8 Docs: Tooling: Add Atom plugin 2019-11-03 21:45:57 -03:00
GrayJack
05f27d0336 Docs: Libraries: Remove links that don't exist anymore and add new ones 2019-11-03 21:40:49 -03:00
GrayJack
adc131787f Docs: LanguageGuide: defdynamic, match form, algebraic types, pattern literal fix 2019-11-03 21:38:47 -03:00
hellerve
98bc275ea5 core: add Byte.hash 2019-11-01 10:52:34 +01:00
hellerve
15c27bdb49 core: allow byte as member type 2019-11-01 10:52:34 +01:00
hellerve
f1f252639f core: add a byte type 2019-11-01 10:52:34 +01:00
hellerve
34e1ca829c core: Pointer.from-int->Pointer.from-long 2019-10-30 08:28:21 +01:00
hellerve
ec7ea12053 docs: add pointer to docs 2019-10-30 08:25:38 +01:00
Erik Svedäng
bfbd86711b Merge branch 'master' into lifetimez-with-lambdas 2019-10-29 10:17:19 +01:00
Erik Svedäng
dd9c4616e8
Merge pull request #602 from hellerve/error
Actually register error
2019-10-28 14:33:00 +01:00
hellerve
6e85433fd5 core: error docs 2019-10-28 14:32:40 +01:00
Erik Svedäng
6c9a6c0671 All tests run (yay). 2019-10-23 16:38:00 +02:00
Erik Svedäng
8b6e120010 Docs getting weirder. 2019-10-23 15:44:59 +02:00
Erik Svedäng
8fe98a27a3 Beautify the type variables in docs. 2019-10-22 15:42:57 +02:00
Erik Svedäng
8c86310fac Merge branch 'master' into lifetimez 2019-10-22 14:47:14 +02:00
Spencer King
2ee8fd4889 Fix typo in LanguageGuide
“annoted” should be “annotated”
2019-10-17 18:40:53 -05:00
Erik Svedäng
b410586722 Added lifetime variable to 'RefTy', all tests run. 2019-10-17 12:02:49 +02:00