Commit graph

  • 85296183d1 update grammar trunk tocariimaa 2025-01-31 21:47:11 -03:00
  • 873b691ca0 implement line comments tocariimaa 2025-01-31 21:46:28 -03:00
  • 9e592c57d7 readme update tocariimaa 2025-01-31 21:45:42 -03:00
  • 91375ea572 allocate AST node only when needed tocariimaa 2025-01-30 23:37:17 -03:00
  • 8cd31829ad move to C-style braces tocariimaa 2025-01-30 18:14:43 -03:00
  • e6b0294807 guess what, it CAN happen tocariimaa 2025-01-30 18:01:55 -03:00
  • 35167781cd move string functions out from the header tocariimaa 2025-01-30 17:59:26 -03:00
  • a66b88b1d3 unretard tocariimaa 2025-01-30 17:52:01 -03:00
  • fe27d20130 fix function call parsing tocariimaa 2025-01-30 17:42:17 -03:00
  • 828b84e1cc parser: adjust location info for variable_decl tocariimaa 2025-01-21 19:42:07 -03:00
  • 7c286f2261 add else and elif to the grammar tocariimaa 2025-01-21 18:36:25 -03:00
  • 4b52f663c6 grammar: specify expressions tocariimaa 2025-01-21 18:16:47 -03:00
  • ac6cc2154d parser: implement subexpressions with parentheses tocariimaa 2025-01-21 18:13:33 -03:00
  • db91cf09fc sema: use ast field here, add assertion tocariimaa 2025-01-21 14:36:18 -03:00
  • 632fe260fe sema: return proc return type instead of proc type itself tocariimaa 2025-01-21 14:35:47 -03:00
  • 53d1825d5b C codegen: emit correct operator instead of placeholder tocariimaa 2025-01-21 14:35:01 -03:00
  • 319047ccea add < and > operators to enviroment tocariimaa 2025-01-21 14:34:23 -03:00
  • d3f54cf7af remove posix feature macro definition tocariimaa 2025-01-21 14:08:46 -03:00
  • b127522ef7 C codegen: always use int return type for main tocariimaa 2025-01-21 00:29:27 -03:00
  • 69f6509083 remove useless function tocariimaa 2025-01-21 00:20:21 -03:00
  • 71fb88602f move to nominal typing for some types tocariimaa 2025-01-20 19:30:22 -03:00
  • 6ff868a646 rename: attribute -> pragma in fields tocariimaa 2025-01-20 19:02:29 -03:00
  • ea9e8b7d0d rename: attribute -> pragma tocariimaa 2025-01-20 18:54:23 -03:00
  • 1b1653b593 use double quotes here tocariimaa 2025-01-20 17:50:04 -03:00
  • 47684dfb38 update makefile tocariimaa 2025-01-19 20:47:25 -03:00
  • b7129b51ab update header paths and makefile tocariimaa 2025-01-19 20:28:18 -03:00
  • 9b120090c0 move compiler entry point file to project root tocariimaa 2025-01-19 20:27:45 -03:00
  • 57097d6779 comment here tocariimaa 2025-01-19 19:42:44 -03:00
  • ea75f19804 move expression to func tocariimaa 2025-01-19 19:32:01 -03:00
  • c1d54991c0 remove usage of goto tocariimaa 2025-01-19 19:23:39 -03:00
  • c984c94ac8 tweak graphic tocariimaa 2025-01-19 19:21:15 -03:00
  • 58aabecb3d style: remove braces tocariimaa 2025-01-19 19:19:23 -03:00
  • abc6a16294 use macro constant here tocariimaa 2025-01-19 19:12:45 -03:00
  • b2c4a55544 update grammar tocariimaa 2025-01-19 19:09:41 -03:00
  • 41589320de preliminary variable decl type inference from expr tocariimaa 2025-01-15 13:47:59 -03:00
  • 001a06dd2d pass correct location to return expression check tocariimaa 2025-01-15 13:07:17 -03:00
  • ad64813a67 update grammar tocariimaa 2025-01-15 13:07:01 -03:00
  • 0f27e9965a fix rule naming in grammar spec tocariimaa 2025-01-14 19:27:38 -03:00
  • 47dfde6b3b forgot to remove this file tocariimaa 2025-01-14 19:21:36 -03:00
  • 3836492ba2 use ABNF for the grammar specification instead tocariimaa 2025-01-14 19:18:42 -03:00
  • 527561000f add formal grammar definition tocariimaa 2025-01-14 00:34:50 -03:00
  • af60de0d62 lexer: use Str_from_buf here 2 tocariimaa 2025-01-13 14:52:14 -03:00
  • 3d8c20f5c3 fix wrong null terminator assertion tocariimaa 2025-01-13 14:48:12 -03:00
  • 33c8f0b841 lexer: use Str_from_buf here tocariimaa 2025-01-13 14:38:25 -03:00
  • 0bedfa70c5 convert Sb macro to a proper function tocariimaa 2025-01-13 14:34:25 -03:00
  • 842322bedc lexer: increment column count in multibyte tokens tocariimaa 2025-01-13 14:17:14 -03:00
  • 628d656207 lexer: remove this useless code tocariimaa 2025-01-12 23:50:41 -03:00
  • 6b26b25567 be more confident tocariimaa 2025-01-12 23:39:41 -03:00
  • cad0e29978 lexer: move this macro definition tocariimaa 2025-01-12 23:17:46 -03:00
  • 698a10e4ba lexer: save token location here too tocariimaa 2025-01-12 23:17:32 -03:00
  • f5230501a9 separate Location for identifier and type in AST tocariimaa 2025-01-12 23:15:03 -03:00
  • 7f5bcf4f77 lexer: make each token return its location tocariimaa 2025-01-12 23:13:17 -03:00
  • 2a83bc00f8 include gitignore tocariimaa 2025-01-12 19:11:08 -03:00
  • bba597f7bf Initial commit tocariimaa 2025-01-12 18:20:42 -03:00