Commit Graph

2360 Commits

Author SHA1 Message Date
Erik Svedäng
10b5ec1ef4 Can (optionally) batch rename all functions parsed from a .h file
using 'sed'.

Example:
$ carp-header-parse ~/Desktop/glfw.h -s "s/glfw/GLFW/g"
2018-02-27 13:40:40 +01:00
Erik Svedäng
4f86ae7907 Handle function prototypes prefixed with a single macro token. 2018-02-27 13:09:21 +01:00
hellerve
956ec1e129 Merge https://github.com/carp-lang/carp
* https://github.com/carp-lang/carp:
  Cleanup.
  Fix tyToXObj for structs without type variables.
  Can parse C pointers now.
  Parse more types.
  The tool "carp-header-parse" works, at least for simple inputs.
  Started working on utility for parsing C headers.
  Can register a different name to use in emitted C code.
  Tooling.
  Documentation for '--check' flag.
  Disambiguation errors also machine readable.
  Main function checks report correctly.
  Even more machine error messages.
  Lots more machine readable error messages.
  Bug found.
  Column source code locations are reported with 1-indexing in all places.
2018-02-27 12:46:40 +01:00
Erik Svedäng
ebbdf95679 Cleanup. 2018-02-27 11:21:43 +01:00
Erik Svedäng
4aa7e78687 Fix tyToXObj for structs without type variables. 2018-02-27 11:17:51 +01:00
Erik Svedäng
a7fa295074 Can parse C pointers now. 2018-02-27 11:00:39 +01:00
Erik Svedäng
cfd918c8c6 Parse more types. 2018-02-27 10:47:03 +01:00
Erik Svedäng
88f92ff162 Merge branch 'master' of https://github.com/carp-lang/Carp 2018-02-27 10:32:52 +01:00
Erik Svedäng
ef334048b2 The tool "carp-header-parse" works, at least for simple inputs. 2018-02-27 10:32:25 +01:00
Erik Svedäng
01d77688ea Started working on utility for parsing C headers. 2018-02-27 09:50:20 +01:00
Erik Svedäng
9d243997e5 Can register a different name to use in emitted C code. 2018-02-26 19:53:23 +01:00
Erik Svedäng
aa20c83b33 Tooling. 2018-02-26 18:12:53 +01:00
Erik Svedäng
f572161985 Documentation for '--check' flag. 2018-02-26 16:57:18 +01:00
Erik Svedäng
bb31a16c19 Disambiguation errors also machine readable. 2018-02-26 16:49:21 +01:00
Erik Svedäng
a4e1b6d942 Main function checks report correctly. 2018-02-26 16:39:24 +01:00
Erik Svedäng
ad4014c301 Even more machine error messages. 2018-02-26 16:31:49 +01:00
Erik Svedäng
cf3c807148 Lots more machine readable error messages. 2018-02-26 16:21:14 +01:00
Erik Svedäng
2d7c54300b Bug found. 2018-02-26 16:01:52 +01:00
Erik Svedäng
58ca048970 Column source code locations are reported with 1-indexing in all places. 2018-02-26 13:12:33 +01:00
hellerve
bf7addb6d9 Merge https://github.com/carp-lang/carp
* https://github.com/carp-lang/carp:
  1-indexing works better for machine reading. Not sure what the correct option is.
  Bugfix: Inc column by one when parsing doubles.
  The --check flag reports errors in a machine readable way.
2018-02-26 13:03:11 +01:00
Erik Svedäng
4129f430d8 1-indexing works better for machine reading. Not sure what the correct
option is.
2018-02-26 12:44:13 +01:00
Erik Svedäng
fb4721c105 Bugfix: Inc column by one when parsing doubles. 2018-02-26 12:32:39 +01:00
Erik Svedäng
cdba569b04 The --check flag reports errors in a machine readable way. 2018-02-26 12:25:16 +01:00
hellerve
ecc99e0aac Merge https://github.com/carp-lang/carp
* https://github.com/carp-lang/carp:
  Todos.
  Flycheck works reasonanbly well.
2018-02-25 16:39:40 +01:00
Erik Svedäng
b7b9fc33ad Todos. 2018-02-25 15:48:20 +01:00
Erik Svedäng
a3266b0091 Flycheck works reasonanbly well. 2018-02-25 15:42:56 +01:00
hellerve
619089aead core: change globals to vars in test 2018-02-23 17:25:15 +01:00
Erik Svedäng
b8e1784a00 http://walfield.org/blog/2010/08/25/lambdas-in-c.html 2018-02-21 07:34:38 +01:00
Erik Svedäng
987c2bb172 Cleanup reading of file. 2018-02-19 16:24:35 +01:00
Erik Svedäng
e35178ccf8 Enforce UTF-8 encoding when loading files. 2018-02-19 15:47:18 +01:00
Erik Svedäng
1d504b7dc1 Ensure intermediate directory if not exists. 2018-02-19 15:10:34 +01:00
Erik Svedäng
0a87bc8c10 Trying to make flycheck (on the fly checking in Emacs) working. 2018-02-19 14:36:39 +01:00
Erik Svedäng
10211ed3dc Merge branch 'master' of https://github.com/carp-lang/Carp 2018-02-18 16:56:23 +01:00
Erik Svedäng
7ddc3479d3 DONE: Create a "release.sh" script that creates a directory with a binary and the core library. 2018-02-16 21:53:44 +01:00
Erik Svedäng
15a5e48b68
Merge pull request #188 from Nananas/patch-1
Typo in dynamic `or` evaluation error
2018-02-15 16:34:16 +01:00
Thomas Dendale
7ae0ca544a
Typo in dynamic or evaluation error 2018-02-15 16:23:03 +01:00
Erik Svedäng
c483b1c0cb BUG FIX: When running :rb, shouldn't carp stop when :r returns an
error? Yes it should.
2018-02-12 17:51:00 +01:00
Erik Svedäng
66f336cdc3 Preserve order of (.carp) files loaded. 2018-02-12 15:50:18 +01:00
Erik Svedäng
c67b931f35 Moved default project variable to Main. 2018-02-12 15:36:44 +01:00
Erik Svedäng
2ca8cb2fe5 Check for platform in uniform way. 2018-02-12 15:34:57 +01:00
Erik Svedäng
9c7793d6d1 Undefine things until cl.exe can compile a Hello World program. 2018-02-12 14:34:17 +01:00
Erik Svedäng
47e752e1c7 Variable for determining platform. 2018-02-12 14:33:51 +01:00
Erik Svedäng
3e8e0ce46c Handle lambda character on Windows. 2018-02-12 13:58:33 +01:00
Erik Svedäng
86d2d1f24f Merge branch 'master' of https://github.com/carp-lang/Carp 2018-02-09 11:39:51 +01:00
Erik Svedäng
01f2eeb2e9 Todos. 2018-02-09 11:39:45 +01:00
Erik Svedäng
36274a29d3 Made System.exit return 'a' instead of (). 2018-02-08 22:13:27 +01:00
Erik Svedäng
cda502b9d2 Todo done. 2018-02-08 19:06:37 +01:00
Erik Svedäng
a985c2f59e Prevent setting of an not owned local variable. 2018-02-08 19:05:49 +01:00
Erik Svedäng
0610c8e209 BUGFIX: Memory allocated in the condition of a while-loop is managed
first run through the loop.
2018-02-08 18:34:53 +01:00
Erik Svedäng
97fef54482 Some comments in the Debug module. 2018-02-08 17:55:44 +01:00