Commit Graph
87 Commits
Author SHA1 Message Date
DanielGavin f63f28302e Recover from faulty parameter in parse_proc_type 2024-01-22 20:35:26 +01:00
DanielGavin 8e395cc6e9 Fixed crash in core:odin/parser with #reverse 2023-12-13 20:08:26 +01:00
DanielGavin 64a63b3879 Add #reverse to odin/parser. 2023-09-03 16:15:03 +02:00
DanielGavin f76559daf6 Remove whitespaces 2023-07-02 18:28:37 +02:00
DanielGavin 5e99ff6769 Add support FlagBits2 2023-07-02 18:24:37 +02:00
Daniel Gavin 25869b7504 Change open to be read only when opening directory 2022-07-25 11:34:03 +02:00
Daniel Gavin ff5e036773 Trim whitespaces 2022-01-27 14:27:26 +01:00
Daniel Gavin 4dc29d141f Fix core:odin/parser not setting the inline flag correctly. 2022-01-27 14:24:33 +01:00
Daniel Gavin 8ecee32e1c Merge remote-tracking branch 'upstream/master' into parser-fix 2022-01-27 13:58:41 +01:00
Daniel Gavin 6a7d821fcc Merge remote-tracking branch 'upstream/master' into parser-fix 2022-01-24 16:58:39 +01:00
Daniel Gavin 01e29bf27e Merge remote-tracking branch 'upstream/master' into parser-fix 2022-01-23 01:38:15 +01:00
Daniel Gavin 96d7c4ffdf Merge remote-tracking branch 'upstream/master' into parser-fix 2022-01-17 13:15:44 +01:00
Daniel Gavin f19325cbe0 Merge remote-tracking branch 'upstream/master' into parser-fix 2022-01-16 13:54:22 +01:00
Daniel Gavin d57ec4a11d Fix return stmt when it's one lined(check for close brace). 2022-01-16 13:20:12 +01:00
DanielGavinandGitHub cecca96f3d Merge branch 'odin-lang:master' into parser-fix 2021-12-02 22:45:14 +01:00
Daniel Gavin f1a126e162 Do not save the comment when peeking. 2021-12-02 22:44:47 +01:00
Daniel Gavin 517c8ff1dd Include Matrix_Type to the is_literal_type switch statement. 2021-11-28 02:14:25 +01:00
Daniel Gavin a4ba91a554 Check for non inserted semicolon in *expect_closing_brace_of_field_list* 2021-11-25 18:47:58 +01:00
Daniel Gavin cf390bf8b9 Recover from closing brace not found in field list 2021-11-24 21:20:46 +01:00
DanielGavinandGitHub fbc38c78eb Merge branch 'odin-lang:master' into parser-fix 2021-11-09 14:30:34 +01:00
Daniel Gavin b0db90de96 Add Any_Int as allowed flag in field signatures. 2021-11-09 14:29:53 +01:00
Daniel Gavin 5b074ceee5 Add json encoding test + fix enum not being set on success. 2021-11-07 14:35:52 +01:00
Daniel Gavin 0a11a6e1f6 Merge remote-tracking branch 'upstream/master' into parser-fix 2021-09-20 20:56:07 +02:00
Daniel Gavin 46d99395ce typo in filename 2021-09-20 20:53:39 +02:00
Daniel Gavin 50ee65ea9e Make default_parser use the optional_semicolons and add odin parser test. 2021-09-20 20:50:01 +02:00
Daniel Gavin a2a7647c90 Fix '>>' operand being tokenized correctly and switch statement with bare semicolon. 2021-09-20 20:12:13 +02:00
Daniel Gavin 44ee0f2cdc Merge branch 'master' into prototype-fmt 2021-05-20 12:15:14 +02:00
Daniel Gavin 50035f257e don't factor in the rhs length for lines that don't have Equal tokens. 2021-05-20 12:13:23 +02:00
Daniel Gavin 87a1833862 fix weird behavior of nesting proc types in structs 2021-05-01 21:26:40 +02:00
Daniel Gavin 9c6ab05981 fix tokenizer for ~= and better struct aligning 2021-04-29 00:51:24 +02:00
Daniel Gavin 088f4b5039 fix out of bounds with empty struct 2021-04-28 12:53:04 +02:00
Daniel Gavin 51b198aa56 Merge remote-tracking branch 'upstream/master' into prototype-fmt 2021-04-27 00:06:30 +02:00
Daniel Gavin 87bfd31664 force all enums newlined if there is more than one line 2021-04-23 23:42:53 +02:00
Daniel Gavin 5fba548aa0 more fixes with wierd comment placements 2021-04-23 23:22:48 +02:00
Daniel Gavin aafbf5bac7 odinfmt 2021-04-23 22:55:59 +02:00
Daniel Gavin 951e940470 handle comments in stupid places 2021-04-23 21:52:27 +02:00
Daniel Gavin 3b5b845ea6 refractor 2021-04-23 16:45:55 +02:00
Daniel Gavin 3f9ad6ba09 fix proc group, struct align with internal structs 2021-04-23 16:33:11 +02:00
Daniel Gavin f10f7ebbf1 Merge remote-tracking branch 'upstream/master' into prototype-fmt 2021-04-23 10:24:05 +02:00
Daniel Gavin 40ed7e48d0 remove prints 2021-04-22 00:56:31 +02:00
Daniel Gavin ab53900c95 check comma count in enum instead 2021-04-22 00:55:25 +02:00
Daniel Gavin 43589a56b7 odinfmt on printer 2021-04-22 00:32:36 +02:00
Daniel Gavin de1838c0cb align not mutable correctly 2021-04-22 00:23:17 +02:00
Daniel Gavin 9b8563dfc0 style 2021-04-22 00:08:03 +02:00
Daniel Gavin b18e8898d8 ran odinfmt on source 2021-04-22 00:07:07 +02:00
Daniel Gavin ca112c0b6d better placing of the end brace 2021-04-22 00:04:01 +02:00
Daniel Gavin 6eb64f2bdc align enum 2021-04-21 23:40:08 +02:00
Daniel Gavin 25c3b6dc95 align value decls 2021-04-21 23:21:45 +02:00
Daniel Gavin 3464784e5e add proc to format multiline 2021-04-19 19:41:53 +02:00
Daniel Gavin f1dc7c0b27 more work 2021-04-19 19:38:08 +02:00
Daniel Gavin c708f649ec Merge remote-tracking branch 'upstream/master' into prototype-fmt 2021-04-19 02:13:29 +02:00
Daniel Gavin f7b8b3a340 ensure that the comments gets pushed if it's in the beginning before package 2021-04-18 22:06:32 +02:00
Daniel Gavin 2cbb3443d3 ran odinfmt 2021-04-18 21:53:52 +02:00
Daniel Gavin 11bd518f36 fix bugs 2021-04-18 21:52:00 +02:00
Daniel Gavin a721802337 fixing calls in calls 2021-04-18 21:07:58 +02:00
Daniel Gavin 5a8c7b4f90 support multiline for and if 2021-04-16 02:15:29 +02:00
Daniel Gavin f17fc05ff2 format call and binary expression 2021-04-16 00:44:16 +02:00
Daniel Gavin a12db382e0 damn, ran the odinfmt with spaces instead of tabs... 2021-04-15 00:24:00 +02:00
Daniel Gavin 22daa50374 ran the odinfmt - looks good, except for multi line binary operations 2021-04-15 00:19:13 +02:00
Daniel Gavin a09300fb0e more fixes 2021-04-15 00:11:10 +02:00
Daniel Gavin bab4e5531a remove print 2021-04-14 21:53:11 +02:00
Daniel Gavin 1de928df78 fixed bug in parser on when 2021-04-14 18:43:04 +02:00
Daniel Gavin aded272b33 split stmts 2021-04-14 18:04:48 +02:00
Daniel Gavin b0721f1e0c aligning structs now work 2021-04-14 16:31:31 +02:00
Daniel Gavin 7e90ece84a more switch alignment work 2021-04-14 16:03:36 +02:00
Daniel Gavin 1f563f2810 work on switch alignment 2021-04-14 15:34:50 +02:00
Daniel Gavin c46317c00b fix os error 2021-04-14 02:20:05 +02:00
Daniel Gavin cb4b7efd3e only align comments in same indentation blocks 2021-04-14 01:57:42 +02:00
Daniel Gavin 411beaa3bf work on comments 2021-04-14 01:15:46 +02:00
Daniel Gavin 1cb3a31f32 have to sort attributes because they are not ordered by position(maybe bug on parser) 2021-04-14 00:53:34 +02:00
Daniel Gavin c99afd04ad work 2021-04-14 00:08:09 +02:00
Daniel Gavin 3157467e4b bring over the odinfmt code 2021-04-13 23:59:40 +02:00
Daniel Gavin 2001384ae6 make sure to print comments at the end of the file 2021-04-13 23:52:23 +02:00
Daniel Gavin b09e53d7fe now aligning comments 2021-04-13 23:42:58 +02:00
Daniel Gavin d046c9c072 at the same point as the previous formatter now 2021-04-13 20:18:50 +02:00
Daniel Gavin 2e8da35851 multiline comments work 2021-04-13 15:27:04 +02:00
Daniel Gavin 1d3458cadb single line comments work 2021-04-12 22:35:26 +02:00
Daniel Gavin 9139ca4673 more work on fmt 2021-04-12 17:01:43 +02:00
Daniel Gavin e0e6bba865 start new prototype 2021-04-11 19:47:33 +02:00
DanielGavin c429c85ade Merge remote-tracking branch 'upstream/master' into parser 2021-03-30 12:42:11 +02:00
DanielGavin 02bbac0903 changed error 2021-03-30 12:40:40 +02:00
DanielGavin b8658547e0 Give error if raw literal hits EOF, and stop removing .Using if it exists in flags and allowed_flags. 2021-03-30 12:38:58 +02:00
DanielGavin 0f11c47579 set the correct allocators and ignore the previous and parent directory in readdir. 2021-02-12 23:22:53 +01:00
DanielGavin 3224869c29 handle expr is null in parse_binary_expr 2021-01-20 16:10:16 +01:00
DanielGavin 38c6182280 Merge branch 'master' of https://github.com/DanielGavin/Odin 2021-01-20 16:05:15 +01:00
DanielGavinandGitHub bd6ead32f8 Merge pull request #1 from odin-lang/master
update from master
2020-12-18 14:19:03 +01:00
DanielGavin 934809397f small fixes to the parser 2020-12-09 21:33:10 +01:00