Commit Graph

108 Commits

Author SHA1 Message Date
gingerBill
b6b3377786 Remove unneeded semicolons 2022-03-24 12:02:50 +00:00
gingerBill
13cb894b30 Update core:odin for union #shared_nil 2022-03-24 12:00:27 +00:00
gingerBill
fcab5508be Merge branch 'master' into odin-ast-changes 2022-03-03 13:56:34 +00:00
gingerBill
edc13c29df Merge pull request #1331 from DanielGavin/parser-fault-recovery
Recover from closing brace not found in field list
2022-02-15 16:26:16 +00:00
gingerBill
9cf937fef0 Merge pull request #1430 from DanielGavin/parser-fix
Fix return stmt when it's one lined(check for close brace).
2022-02-15 15:47:40 +00:00
gingerBill
ad6ea3d6aa Replace any with union for subtyping in core:odin/ast 2022-02-06 13:31:16 +00:00
gingerBill
0c16f27814 Update parser for #sparse 2022-02-06 11:50:27 +00: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
d57ec4a11d Fix return stmt when it's one lined(check for close brace). 2022-01-16 13:20:12 +01:00
Jeroen van Rijn
6f370fdbf2 Merge pull request #1394 from Tetralux/parse-allman-for
core:odin/parser: Fix parsing of Allman style braces in for loops
2021-12-25 20:24:30 +01:00
Tetralux
a60667e900 core:odin/parser: Fix parsing of Allman style braces in for loops 2021-12-25 19:18:29 +00:00
Tetralux
9b2fe56d14 Parse #no_nil on unions 2021-12-25 18:58:08 +00: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
gingerBill
90d587df13 Support matrix type in core:odin 2021-10-27 23:49:37 +01: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
gingerBill
344abf2cb2 Make core and vendor adhere to -vet, -strict-style, and -disallow-do 2021-09-11 16:40:19 +01:00
gingerBill
720884e0f1 Strip even more semicolons if followed by a } or ) on the same line 2021-08-31 23:47:57 +01:00
gingerBill
251da264ed Remove unneeded semicolons from the core library 2021-08-31 22:21:13 +01:00
gingerBill
0c5fa2cdd5 Fix build.bat 2021-08-22 17:09:40 +01:00
gingerBill
19bf12aa09 Update odin/ast for multi pointers 2021-08-22 11:46:12 +01:00
gingerBill
93b5befe45 Improve error handling for missing semicolon separators in a for loop 2021-08-22 11:27:24 +01:00
gingerBill
32bdad322a Improve parsing for or_return in core:odin/parser 2021-08-21 13:43:38 +01:00
gingerBill
4e1c9b71f4 Update core:odin/* for or_else and or_return 2021-08-15 19:05:55 +01:00
gingerBill
af6df7d7c9 Improve error cases in core:odin/parser 2021-08-04 00:23:31 +01:00
gingerBill
57a17a708b Improve core:odin/parser 2021-08-04 00:10:41 +01:00
gingerBill
9e2eb717fe Correct newline_limit logic 2021-05-21 15:22:35 +01:00
gingerBill
cc1d3a7b19 parser.check_poly_params_for_type 2021-05-21 13:07:00 +01:00
Daniel Gavin
44ee0f2cdc Merge branch 'master' into prototype-fmt 2021-05-20 12:15:14 +02:00
gingerBill
9ccdc40f65 Make .Optional_Semicolons a flag for the parser 2021-05-16 12:43:35 +01:00
gingerBill
df3512b112 Make core:odin use a string for the source rather than []byte 2021-05-16 12:38:27 +01:00
gingerBill
ce08e832f7 Allow ..= alongside .. as a "full range" operator; Update core:odin/parser etc 2021-05-16 12:34:35 +01:00
Daniel Gavin
f10f7ebbf1 Merge remote-tracking branch 'upstream/master' into prototype-fmt 2021-04-23 10:24:05 +02:00
gingerBill
c3b3194a00 Update builtin procedures to support the new allocator features (without breaking other code) 2021-04-19 22:44:20 +01:00
Daniel Gavin
1de928df78 fixed bug in parser on when 2021-04-14 18:43:04 +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
gingerBill
bec42e8dd3 Improve core:odin/ast ast.Range_Stmt to use generic number of vals rather than the fixed two to aid with parsing errors 2021-03-24 12:34:06 +00:00
gingerBill
aa93305015 Replace usage of inline proc with #force_inline proc in the core library 2021-02-23 16:14:47 +00:00
gingerBill
41b854f192 Remove #opaque types 2021-02-23 15:45:06 +00:00
gingerBill
28f279329d Remove bit_field keyword and parsing logic 2021-02-23 15:29:54 +00:00
gingerBill
657c0ac4f5 Update odin/parser 2021-02-23 14:38:46 +00:00
gingerBill
908a403d78 Add #force_inline, #force_no_inline and #unroll for the transition to deprecate and then remove the keywords inline and no_inline
`inline for` will be replaced with `#unroll for`
2021-02-23 14:37:05 +00:00
gingerBill
28ed310f31 Remove "pure" and "pure_none" calling conventions 2021-02-23 13:10:23 +00:00
gingerBill
fa02dc9736 Fix #840 2021-02-11 10:15:58 +00:00
DanielGavin
3224869c29 handle expr is null in parse_binary_expr 2021-01-20 16:10:16 +01:00
gingerBill
f6e2d74d10 Keep -vet happy 2020-12-14 14:36:45 +00:00