Commit Graph

  • d27b76fc31 add error for @typeof or & of number literal Andrew Kelley 2016-01-27 12:28:05 -07:00
  • fe0c6a3df9 fix crash when compiling empty file Andrew Kelley 2016-01-27 12:06:47 -07:00
  • fa1ea6062b parseh works for simple functions Andrew Kelley 2016-01-27 03:11:51 -07:00
  • 0278468479 upgrade to the libclang C++ API Andrew Kelley 2016-01-27 00:01:49 -07:00
  • ac085a869d docs: update deps to llvm and clang 3.7.1 Andrew Kelley 2016-01-26 18:11:18 -07:00
  • a73453a268 add c_import top level decl Andrew Kelley 2016-01-26 16:00:39 -07:00
  • 5afe473a86 different extern syntax and simplify parsing top level decls Andrew Kelley 2016-01-26 13:08:21 -07:00
  • bc89614996 update README Andrew Kelley 2016-01-26 01:39:45 -07:00
  • 4e43973413 variable initializations are now mandatory Andrew Kelley 2016-01-25 23:56:46 -07:00
  • b215a3e0b6 add constant expression evaluation for negation Andrew Kelley 2016-01-25 23:44:16 -07:00
  • a37bb4a4da add the C integer types Andrew Kelley 2016-01-25 23:21:13 -07:00
  • 01428d4a72 analyze: fix crash when return type is invalid Andrew Kelley 2016-01-25 22:20:52 -07:00
  • a3e288ab5b implement compile time string concatenation Andrew Kelley 2016-01-25 21:56:29 -07:00
  • 1d68150242 compiler enforces checking for error Andrew Kelley 2016-01-25 20:27:57 -07:00
  • 50854226a6 syntax: back to -> for return type, no more => Andrew Kelley 2016-01-25 17:06:19 -07:00
  • fb85d3a0a2 codegen: get rid of cur_block_context Andrew Kelley 2016-01-25 16:37:45 -07:00
  • deb3586884 implement %% prefix operator Andrew Kelley 2016-01-25 15:45:05 -07:00
  • c0dc0ca6c9 update README Andrew Kelley 2016-01-25 15:22:52 -07:00
  • e85e7ebcf0 bootstrap: use %% operator instead of cast Andrew Kelley 2016-01-25 14:13:25 -07:00
  • 4b9e1dd438 fix tests and add %% operator test Andrew Kelley 2016-01-25 14:04:29 -07:00
  • 6db6609df8 implement %% operator Andrew Kelley 2016-01-25 13:53:40 -07:00
  • bcb18338cd update std lib to use error type and global variables Andrew Kelley 2016-01-24 22:53:00 -07:00
  • 29a83f648b support the %return expression Andrew Kelley 2016-01-24 20:13:08 -07:00
  • f5cc7f65a3 fix parameter access of sret functions Andrew Kelley 2016-01-24 19:27:12 -07:00
  • 419652ee8f ability to return structs byvalue from functions Andrew Kelley 2016-01-24 18:34:50 -07:00
  • ca7b85b32e fix number literal implicit cast Andrew Kelley 2016-01-24 14:51:47 -07:00
  • 5c18826240 introduce the error keyword and type Andrew Kelley 2016-01-24 01:34:48 -07:00
  • 37aae53009 various small cleanups Andrew Kelley 2016-01-23 03:06:29 -07:00
  • 706f72f1b4 fix hang when returning from while loop Andrew Kelley 2016-01-23 02:45:54 -07:00
  • c0ea9290c4 main returns %void Andrew Kelley 2016-01-23 02:14:01 -07:00
  • 91d911007b codegen: fix field access of arrays Andrew Kelley 2016-01-23 00:53:43 -07:00
  • a922d5d42a implement literal error values Andrew Kelley 2016-01-23 00:34:47 -07:00
  • 1543043bf5 fix no error emitted for redeclaring global var Andrew Kelley 2016-01-23 00:07:08 -07:00
  • bfceb18631 character literal returns a number literal Andrew Kelley 2016-01-22 23:24:09 -07:00
  • e269caae02 implement undefined literal Andrew Kelley 2016-01-22 23:12:33 -07:00
  • 0e51c16ef5 add undefined literal Andrew Kelley 2016-01-22 22:42:02 -07:00
  • 523e3b86af support statically initialized array literal Andrew Kelley 2016-01-22 22:02:07 -07:00
  • 21fc5a6402 un-special case constant global strings Andrew Kelley 2016-01-22 20:36:08 -07:00
  • 1158bc3ead support statically initialized structs Andrew Kelley 2016-01-22 18:05:22 -07:00
  • 7bd9c82386 add compile error for non constant expr global Andrew Kelley 2016-01-22 16:40:15 -07:00
  • 72fa03bada add undefined reserved word Andrew Kelley 2016-01-22 16:05:29 -07:00
  • b61406b607 add test for const number literal Andrew Kelley 2016-01-22 16:02:08 -07:00
  • 272fe1c54c implicit casts rewrite the AST Andrew Kelley 2016-01-22 15:31:35 -07:00
  • b09a0cd072 allow constants to have number literal values Andrew Kelley 2016-01-21 15:23:24 -07:00
  • 32e2196257 number literal rework Andrew Kelley 2016-01-21 03:02:25 -07:00
  • 5e212db29c parsing error value decls and error value literals Andrew Kelley 2016-01-20 18:18:50 -07:00
  • 82d1b51b1d doc: remove string keyword from vim syntax highlighting Andrew Kelley 2016-01-20 03:05:53 -07:00
  • 961adc0909 Merge branch 'master' of github.com:andrewrk/zig Andrew Kelley 2016-01-20 02:16:36 -07:00
  • ad9759bc8e basic support for switch expression Andrew Kelley 2016-01-20 02:12:24 -07:00
  • f0f56a4a9b Merge pull request #80 from MovingtoMars/value_count_rename Andrew Kelley 2016-01-20 02:09:07 -07:00
  • 361531891f rename value_count to member_count MovingtoMars 2016-01-20 21:32:11 +13:00
  • ebd8e2d606 Merge pull request #78 from MovingtoMars/master Andrew Kelley 2016-01-20 01:35:14 -07:00
  • 26b9d709aa start working on lang spec MovingtoMars 2016-01-20 21:27:53 +13:00
  • 3eca42c17b cmake: detect libLLVM.so Andrew Kelley 2016-01-19 22:07:19 -07:00
  • c17309dbc5 add switch statement support to parser Andrew Kelley 2016-01-19 20:29:09 -07:00
  • 17e574fec6 add switch statement to language reference Andrew Kelley 2016-01-19 19:15:36 -07:00
  • 890714b8ca Revert "delete parseh" Andrew Kelley 2016-01-18 21:28:54 -07:00
  • ae2151a751 use signed integer for sizes of things Andrew Kelley 2016-01-18 21:13:14 -07:00
  • 92dccde2fd revise plan for cat example Andrew Kelley 2016-01-18 19:32:27 -07:00
  • ea21d2beb6 add error for shadowing a type Andrew Kelley 2016-01-18 17:04:37 -07:00
  • 32821e7098 add function pointer support Andrew Kelley 2016-01-18 16:42:45 -07:00
  • 3a326d5005 pave the road for function pointers Andrew Kelley 2016-01-18 08:50:10 -07:00
  • 4c50606b9d refactor std to use for loop Andrew Kelley 2016-01-18 07:04:57 -07:00
  • fbbef14013 add for loop which can iterate over arrays Andrew Kelley 2016-01-18 07:00:45 -07:00
  • f0a43cfda9 fix nested arrays Andrew Kelley 2016-01-18 04:34:26 -07:00
  • 826c7f06a3 fix cat example Andrew Kelley 2016-01-16 03:31:43 -07:00
  • 9e74b7e754 proposed cat example implementation Andrew Kelley 2016-01-16 03:10:15 -07:00
  • 5f7685336f better main symbol prototype Andrew Kelley 2016-01-16 00:07:20 -07:00
  • ca8d8f114f rename "alwaysinline" to "inline" Andrew Kelley 2016-01-15 20:05:39 -07:00
  • 8205253b2b support array literals Andrew Kelley 2016-01-15 20:01:49 -07:00
  • 8bc3fae1cf fix error message for struct initialization on array Andrew Kelley 2016-01-15 19:05:51 -07:00
  • 8818c59cbc parser: fix not setting container init kind Andrew Kelley 2016-01-15 19:02:04 -07:00
  • dc162c7f83 rename "use" to "import" Andrew Kelley 2016-01-15 18:45:52 -07:00
  • 86f55bce53 add void arrays test Andrew Kelley 2016-01-15 18:41:19 -07:00
  • 0311b35a21 reduce precedence of {} suffix operator Andrew Kelley 2016-01-15 17:40:12 -07:00
  • 74b1665586 more readme formatting Andrew Kelley 2016-01-15 17:18:03 -07:00
  • 39c1348862 fix readme formatting Andrew Kelley 2016-01-15 17:15:42 -07:00
  • 8d60ffe314 solve the mystery of undefined reference error Andrew Kelley 2016-01-15 17:12:26 -07:00
  • 8409e518ab fix build with gcc Andrew Kelley 2016-01-15 14:29:02 -07:00
  • 18374ea8f1 delete parseh Andrew Kelley 2016-01-15 14:16:07 -07:00
  • b0f608a6a7 merge constant expression evaluator with analyzer Andrew Kelley 2016-01-15 04:45:25 -07:00
  • 0c9afede9e overflow intrinsics take type as first argument Andrew Kelley 2016-01-14 17:04:35 -07:00
  • 68c4f617ed fix next_node_index on wrong struct Andrew Kelley 2016-01-14 15:27:42 -07:00
  • 1645fa681f parser: type expressions cannot be assignment Andrew Kelley 2016-01-14 15:21:41 -07:00
  • 5f9ecb8566 instead of 'as' to cast, call type as function Andrew Kelley 2016-01-14 02:52:33 -07:00
  • d121ed961a fix noalias codegen Andrew Kelley 2016-01-13 22:18:10 -07:00
  • 95a7f3553d Merge branch 'master' of github.com:andrewrk/zig Andrew Kelley 2016-01-13 18:17:52 -07:00
  • b28b7f63d1 all types are now expressions Andrew Kelley 2016-01-13 18:15:51 -07:00
  • 76dc44d2a6 fix build with gcc Andrew Kelley 2016-01-12 21:07:45 -07:00
  • cb46d0b5b0 fix not adding builtin functions code Andrew Kelley 2016-01-11 20:43:48 -07:00
  • ccc8e9f4c3 support enums with values attached Andrew Kelley 2016-01-11 20:33:06 -07:00
  • 733830f8a5 doc: rename match to switch in vim syntax Andrew Kelley 2016-01-11 03:03:35 -07:00
  • aaa62eda72 simple enum support Andrew Kelley 2016-01-11 01:15:17 -07:00
  • 2061cd50c0 resolve enum types and emit debug info Andrew Kelley 2016-01-11 00:25:17 -07:00
  • b147ff5b60 fix codegen for void struct fields Andrew Kelley 2016-01-10 18:56:50 -07:00
  • 4d7835e21a delete unused enumfield and enumdecl node types Andrew Kelley 2016-01-10 17:27:58 -07:00
  • fc748e2ccd update enum parsing to new plan Andrew Kelley 2016-01-10 16:58:21 -07:00
  • 3ef2f7058b refactor out the horrible beast that was codegen_node Andrew Kelley 2016-01-10 15:13:39 -07:00
  • d4b8852d78 parsing enum declarations Andrew Kelley 2016-01-10 11:48:54 -07:00
  • 75d5786603 cleanup guess number example Andrew Kelley 2016-01-10 01:32:15 -07:00