aboutsummaryrefslogtreecommitdiff
path: root/src/parser.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Give better syntax error messages for things like `#define Example 123`gingerBill2024-07-101-1/+33
|
* Cache files, env, and argsgingerBill2024-07-091-0/+10
|
* Remove `*_test.odin`; always compile it for all targetsgingerBill2024-07-041-7/+0
|
* Merge pull request #3859 from laytan/wasm-stbtt-object-linking-preopensgingerBill2024-07-021-2/+1
|\ | | | | wasm: support `vendor:stb/truetype` and `vendor:fontstash`
| * wasm: add foreign import and linking of wasm object filesLaytan Laats2024-07-021-2/+1
| |
* | Merge pull request #3760 from Feoramund/refactor-show-error-on-linegingerBill2024-07-011-0/+11
|\ \ | |/ |/| Refactor `show_error_on_line`
| * Fix displaying emptiness when error is on first lineFeoramund2024-06-141-0/+5
| |
| * Fix displaying error on wrong line with token at EOLFeoramund2024-06-141-0/+6
| | | | | | | | | | Previously, this would get a token on text like "\n*\n" where `*` is the token's position, and it would advance off that line.
* | Improve `-strict-style` rules for `if-else` statementsgingerBill2024-06-291-4/+12
| |
* | Add `-vet-tabs`gingerBill2024-06-291-0/+41
| |
* | `-strict-style` enforce 1TBS (mostly)gingerBill2024-06-291-2/+9
| |
* | Allow for `when x in y {` (minor oversight in syntax)gingerBill2024-06-291-0/+3
| |
* | Improve error reporting on "Failed to parse fail" and show the line error if ↵gingerBill2024-06-281-3/+26
| | | | | | | | possible
* | Improve tokenizing wrong number literalsgingerBill2024-06-281-1/+11
| |
* | Remove `@(warning)` and `#warning(...)`gingerBill2024-06-251-1/+1
| |
* | Add `#warning(<string>)` builtin compile time proceduregingerBill2024-06-201-1/+1
|/
* Fix #3727gingerBill2024-06-101-0/+3
|
* Improve parsing for `label: #reverse for` and `label: #partial switch`gingerBill2024-06-101-2/+4
|
* Fix `or_or_<branch>` error messagesFeoramund2024-06-091-4/+4
|
* Change parser to use `^Expr` rather than `string` for the foreign import pathsgingerBill2024-05-281-1/+1
|
* Delay checking foreign import paths until after global scope is checkedgingerBill2024-05-281-3/+25
|
* Begin moving `foreign import` import paths to be evaluated in the semantic ↵gingerBill2024-05-271-36/+29
| | | | phase rather than parsing.
* Improve "Expected a type" syntax errorgingerBill2024-05-201-2/+8
|
* Make `..` ranges a complete error rather than a warning now.gingerBill2024-05-131-1/+1
| | | | This should have been an error years ago.
* Make `core:runtime` etc a warning, and an error with `-vet`gingerBill2024-05-131-2/+23
|
* Suggest `-all-packages` if testing empty directoryFeoramund2024-05-121-0/+4
|
* Fix #3567gingerBill2024-05-101-0/+2
|
* With `-vet-style`, give suggestion of separating where clauses with a comma ↵gingerBill2024-05-091-1/+1
| | | | | | rather than '&&' This improves the error messages
* Fix #3530gingerBill2024-05-071-0/+4
|
* Recognize dynamic library names like libraylib.so.5.0.0joakin2024-04-191-1/+1
|
* Add basic suggestion to missing `package` namegingerBill2024-04-151-0/+6
|
* Improve error messages for people using keywords instead of identifiersgingerBill2024-04-081-1/+9
|
* Add better error messages with suggestions for using `context` as an identifiergingerBill2024-04-041-0/+14
|
* Improve C-like syntax mistakes error messagesgingerBill2024-03-271-0/+1
|
* Fix parsing bug on `bit_set[;x]`gingerBill2024-03-271-0/+5
|
* Remove old error message for #3062gingerBill2024-03-241-3/+0
|
* Fix #3319gingerBill2024-03-241-0/+18
|
* Add error block around `error_line` callsgingerBill2024-03-231-3/+3
|
* Treat `*x` as an unary operator to improve error messages for common ↵gingerBill2024-03-231-1/+6
| | | | C-programmer mistakes
* Add `#no_broadcast` procedure parameter to disallow automatic array ↵gingerBill2024-03-211-8/+9
| | | | programming broadcasting on procedure arguments
* Fix error messagegingerBill2024-03-201-1/+1
|
* Fix #3299gingerBill2024-03-201-0/+13
|
* Add `#row_major matrix[R, C]T`gingerBill2024-03-191-0/+13
| | | | | As well as `#column_major matrix[R, C]T` as an alias for just `matrix[R, C]T`. This is because some libraries require a row_major internal layout but still want to be used with row or major oriented vectors.
* Replace `gb_exit(1)` with `exit_with_errors()` where appropriategingerBill2024-03-191-2/+2
|
* Improve parsing for `bit_field`gingerBill2024-02-221-0/+8
|
* Add field tags to `bit_field`gingerBill2024-02-221-2/+8
|
* Remove debug messagegingerBill2024-02-221-1/+1
|
* Give a better error message when the user uses `context` as if it was an ↵gingerBill2024-02-221-1/+6
| | | | identifier in a field list.
* Begin work adding `bit_field`gingerBill2024-02-221-0/+78
|
* Disallow mixture of polymorphic $ names and normal identifiers within record ↵gingerBill2024-02-081-0/+47
| | | | parameters