Commit Graph

928 Commits (990b8a7d8721103d2181225ac5c6d40ee265a340)
 

Author SHA1 Message Date
Tristan B. V. 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`
1 year ago
Tristan B. V. Kildaire f3957c8d05 Removed placeholder 1 year ago
Tristan B. V. Kildaire fbc88d63e0 d 1 year ago
Tristan B. V. Kildaire a346f60c2e Ensure that 'simple_literals4.t' fails as it tests a range violation during coercion 1 year ago
Tristan B. V. Kildaire ae038c4182 Ensure 'simple_float_constant_bad.t' passes as a failure as it checks for a bad floating point 1 year ago
Tristan B. V. Kildaire a8d244188e Ensure that a failure passes for 'simple_literals2.t' which checks for a failing to coerce due to incompatible types (actually) 1 year ago
Tristan B. V. Kildaire e80571758f Ensure that a failure passes for 'simple_literals2.t' which checks for a failing to coerce due to incompatible types 1 year ago
Tristan B. V. Kildaire d99b23d64c Disabled 'test3.t' as it is not the focus rn 1 year ago
Tristan B. V. Kildaire b4a02addcf Disabled 'simple_oop.t' as it is not the focus rn 1 year ago
Tristan B. V. Kildaire 5e298e599b Else without if test case should fail 1 year ago
Tristan B. V. Kildaire 6dc3c78792 All collision and precedence checks are failing-positives and should be treated as such 1 year ago
Tristan B. V. Kildaire 9ffd3425a0 Removed 'typecheck/simple_array.t' testing as that is old 1 year ago
Tristan B. V. Kildaire 8b97531b71 Try to fix falining-positive test case 'simple_function_call_1.t' 1 year ago
Tristan B. V. Kildaire 59f8b7c01a Try new technique 1 year ago
Tristan B. V. Kildaire ac2fbc86de Allow steps to run even if previous ones failed 1 year ago
Tristan B. V. Kildaire fefaa6e434 Renamed test case 1 year ago
Tristan B. V. 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 1 year ago
Tristan B. V. Kildaire 4144c4accf Fixed emit test for 'Simple conditionals' 1 year ago
Tristan B. V. Kildaire 53062f5ebc Commands
- If the `lex`, `syntaxcheck` or `typecheck` commands fail then exit with an exit status of `-1`
1 year ago
Tristan B. V. Kildaire 3830dd45bc Commands
- On any `ErrnoException` exit with exit code `-2`
1 year ago
Tristan B. V. Kildaire 4d457c2eb3 Disabled 'simple_variables.t' as it uses the now-currently unsupported 'discard' keyword 1 year ago
Tristan B. V. Kildaire 715efb1b14 Compiler
- On `compile` command failure exit with a status of `-1`
1 year ago
Tristan B. V. Kildaire f9e1a28296 Compiler
- Documented `CompilerError` and all of its enums
1 year ago
Tristan B. V. Kildaire bf2ad84b28
Update README.md 1 year ago
Tristan B. V. Kildaire c78679c297
Update README.md 1 year ago
Tristan B. V. Kildaire 95084ec639
Disabled deployment for now
Permissions problems.
1 year ago
Tristan B. V. Kildaire dd31ae1263
Update d.yml 1 year ago
Tristan B. V. Kildaire 42fe576d33
Update d.yml 1 year ago
Tristan B. V. Kildaire 1e65b2caee
Update d.yml 1 year ago
Tristan B. V. Kildaire 8c588ab52f
Update d.yml 1 year ago
Tristan B. V. Kildaire 98b954009d
Update d.yml 1 year ago
Tristan B. V. Kildaire a734347a89
Update d.yml 1 year ago
Tristan B. V. Kildaire 009c4cf560
Update d.yml 1 year ago
Tristan B. V. Kildaire ea7699bc36
Update d.yml 1 year ago
Tristan B. V. Kildaire 3a8d856fbc
Update d.yml 1 year ago
Tristan B. V. Kildaire 5bdd985428
Update d.yml 1 year ago
Tristan B. V. Kildaire d5e5880f7f
Update d.yml 1 year ago
Tristan B. V. Kildaire 695d7a5045
Update d.yml 1 year ago
Tristan B. V. Kildaire 215f301557
Added 2 more tests for code emit
- Added do-while test
- Added for-loop test
1 year ago
Tristan B. V. Kildaire 4e37078276
Update d.yml 1 year ago
Tristan B. V. Kildaire 64500ea2d2
Update d.yml 1 year ago
Tristan B. V. Kildaire 73b9d8332a
Update d.yml 1 year ago
Tristan B. V. Kildaire 9eeacdb3c4
Update d.yml 1 year ago
Tristan B. V. Kildaire 43677cbcfb
Added code emit tests 1 year ago
Tristan B. V. Kildaire 91e389c4ff
Finished typechecking tests 1 year ago
Tristan B. V. Kildaire 464d30b06c
Update d.yml 1 year ago
Tristan B. V. Kildaire 899f832b36
Added more tests 1 year ago
Tristan B. V. Kildaire 8d86f3618a
Update d.yml 1 year ago
Tristan B. V. Kildaire 46e963e98a
Update d.yml 1 year ago
Tristan B. V. Kildaire 3069878aa6
Update d.yml 1 year ago