Commit Graph

928 Commits

Author SHA1 Message Date
Tristan B. Velloza Kildaire 990b8a7d87 Parser
- Added a new default parameter to `parseTypedDeclaration()` which is `onlyType=false`. If one sets this to `true` then we will parse the type till the identifier (what would be it) but stopping on the identifier and returning a bogus `TypedEntity` with a fake name string but with the type string intact
- `parseCast()` now uses `parseTypedDeclaration(onlyType=true)` - this should help us when we want to cast for arrays or pointers (where all that logic is in `parseTypedDeclaration()`).

Test cases

- Added a complex `cast(<expr>)` with a pointer - this should work in upstream `pointers` branch
- File name is `simple_cast_complex_type.t`
2023-04-14 13:32:19 +02:00
Tristan B. Velloza Kildaire f3957c8d05 Removed placeholder 2023-04-14 13:02:05 +02:00
Tristan B. Velloza Kildaire fbc88d63e0 d 2023-04-14 13:01:56 +02:00
Tristan B. Velloza Kildaire a346f60c2e Ensure that 'simple_literals4.t' fails as it tests a range violation during coercion 2023-04-12 11:42:21 +02:00
Tristan B. Velloza Kildaire ae038c4182 Ensure 'simple_float_constant_bad.t' passes as a failure as it checks for a bad floating point 2023-04-12 11:38:26 +02:00
Tristan B. Velloza Kildaire a8d244188e Ensure that a failure passes for 'simple_literals2.t' which checks for a failing to coerce due to incompatible types (actually) 2023-04-12 11:36:31 +02:00
Tristan B. Velloza Kildaire e80571758f Ensure that a failure passes for 'simple_literals2.t' which checks for a failing to coerce due to incompatible types 2023-04-12 11:33:34 +02:00
Tristan B. Velloza Kildaire d99b23d64c Disabled 'test3.t' as it is not the focus rn 2023-04-12 09:57:13 +02:00
Tristan B. Velloza Kildaire b4a02addcf Disabled 'simple_oop.t' as it is not the focus rn 2023-04-12 09:55:12 +02:00
Tristan B. Velloza Kildaire 5e298e599b Else without if test case should fail 2023-04-12 09:51:40 +02:00
Tristan B. Velloza Kildaire 6dc3c78792 All collision and precedence checks are failing-positives and should be treated as such 2023-04-12 09:49:08 +02:00
Tristan B. Velloza Kildaire 9ffd3425a0 Removed 'typecheck/simple_array.t' testing as that is old 2023-04-12 09:45:34 +02:00
Tristan B. Velloza Kildaire 8b97531b71 Try to fix falining-positive test case 'simple_function_call_1.t' 2023-04-12 09:42:44 +02:00
Tristan B. Velloza Kildaire 59f8b7c01a Try new technique 2023-04-12 09:39:30 +02:00
Tristan B. Velloza Kildaire ac2fbc86de Allow steps to run even if previous ones failed 2023-04-12 09:33:57 +02:00
Tristan B. Velloza Kildaire fefaa6e434 Renamed test case 2023-04-12 09:31:10 +02:00
Tristan B. Velloza Kildaire a973f60d54 When typechecking 'simple_function_call_1.t' we WANT it to fail, hence exiting with 255 is what we want, anything else is an error 2023-04-12 09:08:56 +02:00
Tristan B. Velloza Kildaire 4144c4accf Fixed emit test for 'Simple conditionals' 2023-04-12 09:04:11 +02:00
Tristan B. Velloza Kildaire 53062f5ebc Commands
- If the `lex`, `syntaxcheck` or `typecheck` commands fail then exit with an exit status of `-1`
2023-04-12 09:02:39 +02:00
Tristan B. Velloza Kildaire 3830dd45bc Commands
- On any `ErrnoException` exit with exit code `-2`
2023-04-12 09:01:47 +02:00
Tristan B. Velloza Kildaire 4d457c2eb3 Disabled 'simple_variables.t' as it uses the now-currently unsupported 'discard' keyword 2023-04-12 08:59:19 +02:00
Tristan B. Velloza Kildaire 715efb1b14 Compiler
- On `compile` command failure exit with a status of `-1`
2023-04-12 08:55:42 +02:00
Tristan B. Velloza Kildaire f9e1a28296 Compiler
- Documented `CompilerError` and all of its enums
2023-04-12 08:46:26 +02:00
Tristan B. Velloza Kildaire bf2ad84b28
Update README.md 2023-03-26 14:13:56 +02:00
Tristan B. Velloza Kildaire c78679c297
Update README.md 2023-03-26 14:13:16 +02:00
Tristan B. Velloza Kildaire 95084ec639
Disabled deployment for now
Permissions problems.
2023-03-26 14:11:43 +02:00
Tristan B. Velloza Kildaire dd31ae1263
Update d.yml 2023-03-26 14:01:59 +02:00
Tristan B. Velloza Kildaire 42fe576d33
Update d.yml 2023-03-26 13:57:42 +02:00
Tristan B. Velloza Kildaire 1e65b2caee
Update d.yml 2023-03-26 13:51:35 +02:00
Tristan B. Velloza Kildaire 8c588ab52f
Update d.yml 2023-03-26 13:45:30 +02:00
Tristan B. Velloza Kildaire 98b954009d
Update d.yml 2023-03-26 13:43:45 +02:00
Tristan B. Velloza Kildaire a734347a89
Update d.yml 2023-03-26 13:41:22 +02:00
Tristan B. Velloza Kildaire 009c4cf560
Update d.yml 2023-03-26 13:39:19 +02:00
Tristan B. Velloza Kildaire ea7699bc36
Update d.yml 2023-03-26 13:37:10 +02:00
Tristan B. Velloza Kildaire 3a8d856fbc
Update d.yml 2023-03-26 13:32:22 +02:00
Tristan B. Velloza Kildaire 5bdd985428
Update d.yml 2023-03-26 13:31:01 +02:00
Tristan B. Velloza Kildaire d5e5880f7f
Update d.yml 2023-03-26 13:29:36 +02:00
Tristan B. Velloza Kildaire 695d7a5045
Update d.yml 2023-03-26 13:28:56 +02:00
Tristan B. Velloza Kildaire 215f301557
Added 2 more tests for code emit
- Added do-while test
- Added for-loop test
2023-03-26 13:27:24 +02:00
Tristan B. Velloza Kildaire 4e37078276
Update d.yml 2023-03-26 13:23:54 +02:00
Tristan B. Velloza Kildaire 64500ea2d2
Update d.yml 2023-03-26 13:23:16 +02:00
Tristan B. Velloza Kildaire 73b9d8332a
Update d.yml 2023-03-26 13:22:11 +02:00
Tristan B. Velloza Kildaire 9eeacdb3c4
Update d.yml 2023-03-26 13:21:30 +02:00
Tristan B. Velloza Kildaire 43677cbcfb
Added code emit tests 2023-03-26 13:18:50 +02:00
Tristan B. Velloza Kildaire 91e389c4ff
Finished typechecking tests 2023-03-26 13:15:43 +02:00
Tristan B. Velloza Kildaire 464d30b06c
Update d.yml 2023-03-26 13:12:12 +02:00
Tristan B. Velloza Kildaire 899f832b36
Added more tests 2023-03-26 13:09:49 +02:00
Tristan B. Velloza Kildaire 8d86f3618a
Update d.yml 2023-03-26 13:02:30 +02:00
Tristan B. Velloza Kildaire 46e963e98a
Update d.yml 2023-03-26 13:01:07 +02:00
Tristan B. Velloza Kildaire 3069878aa6
Update d.yml 2023-03-26 12:58:47 +02:00