Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2020-12-07 | Fix typo in README.md | Philip Herron | 1 | -1/+1 | |
2020-12-07 | Update Automations to only build rust to improve build times | Philip Herron | 2 | -2/+2 | |
2020-12-07 | Only need to compile the Rust language | Philip Herron | 1 | -1/+1 | |
2020-12-07 | Update GDB command to remove bad test.s source | Philip Herron | 1 | -1/+1 | |
2020-12-07 | Add Twitter link | Philip Herron | 1 | -1/+1 | |
2020-12-03 | Type Resolve ReturnExpr's to ensure they match the function type. | Philip Herron | 4 | -7/+63 | |
This an implementation to check return types for functions it needs work to handle structs and other data structures later on. | |||||
2020-12-03 | We cannot lookup types to ensure they are known as AST::Type differs | Philip Herron | 1 | -14/+14 | |
to how struct AST Types. We need to move to HIR to avoid this issue via name resolution. | |||||
2020-12-03 | Add failure tests to rust testsuite | Philip Herron | 6 | -25/+39 | |
We need to have test cases for when the compilation should xfail this will help add more tests for name/type resolutions. This is needed as there is a large code changes on the horizon and this will help spot regressions. | |||||
2020-12-01 | GIMPLE coversions for ArrayIndexExpr and Arrays with values | Philip Herron | 6 | -6/+143 | |
This compiles the ArrayIndexExpressions and Arrays such as: let x = [1,2,3]; let a = x[0]; Addresses: #55 | |||||
2020-12-01 | Fix README.md with updated GDB command | Philip Herron | 1 | -1/+1 | |
The -auxbase-strip command has been removed from compiler proper's, since rebase against master GCC. | |||||
2020-12-01 | Mark this as a FIXME memory leak | Philip Herron | 1 | -0/+1 | |
2020-12-01 | Ensure the array index is of integer type. | Philip Herron | 1 | -1/+9 | |
The index expression must be validated to ensure it is an integer. Addresses: #27 #55 | |||||
2020-12-01 | Resolve the type from an ArrayIndexExpression | Philip Herron | 3 | -9/+290 | |
Adds new TypeVisitor to resolve Types from the AST via Visitor Pattern, so the element type can be extracted. Addresses: #27 #55 | |||||
2020-12-01 | Add Type resolution to Array expressions | Philip Herron | 3 | -14/+180 | |
This adds type inferencing and validation for arrays such as: let x: [i32, 5] = [1,2,3,4,5] ley y = [1,2,3]; It checks that each element is of a valid type and they line up correctly. There needs to be some refactoring of the type resolution to handle the array index expressions so this is a good save point for now. Addresses: #27 #55 | |||||
2020-11-30 | Add Docker badges to README | Philip Herron | 1 | -0/+2 | |
2020-11-30 | Turn on make check-rust | Philip Herron | 1 | -1/+2 | |
This will turn on the test-suite which does have a currently failing test lets see what happens the workflow in github. | |||||
2020-11-30 | Added GCC Rust Zulip channel link - please feel free to join :^) | Philip Herron | 1 | -5/+6 | |
2020-11-30 | Linemap and Backend are both singletons | Philip Herron | 1 | -3/+7 | |
We can only create on linemap instance to avoid missing locations in error diagnostics. We also only need one instance of the backend. | |||||
2020-11-29 | Updated README.md to add more info to fellow Rustaceans. | Philip Herron | 1 | -6/+61 | |
2020-11-28 | No need to declare Type as inferedType when it is already defined | Philip Herron | 1 | -7/+0 | |
In the case where there is no init_expression for a variable declaration and the type was defined on the name we dont need to then assign that the variable was infered. | |||||
2020-11-28 | Use ifdef guards instead of pragma once | Philip Herron | 1 | -1/+4 | |
2020-11-28 | Fix formatting in Makefile | Philip Herron | 1 | -41/+42 | |
2020-11-28 | Add Docker file for automated images to allow for easier testing | Philip Herron | 1 | -0/+71 | |
Example usage: docker build . -t gccrs-dev docker run --rm -v "$PWD":/usr/src/myapp -w /usr/src/myapp \ gccrs-dev:latest gccrs -g -O2 -c \ gcc/testsuite/rust.test/compilable/type_infer1.rs -o type_infer1.o | |||||
2020-11-28 | Initial TestSuite setup for make check-rust | Philip Herron | 11 | -1/+841 | |
This is an initial basic testsuite with one file with expected failures for now. | |||||
2020-11-28 | Remove unused and add FIXME | Philip Herron | 2 | -18/+4 | |
We need to ensure in type resolution pass we fix up the ordering for a struct initilization and give defaults to missing fields. | |||||
2020-11-28 | Added skeleton for macro expansion and added way to convert MetaItems back ↵ | SimplyTheOther | 9 | -193/+209 | |
to Attributes (e.g. for cfg_attr use) | |||||
2020-11-28 | Improved parsing of MatchExpr (and AST structure) | SimplyTheOther | 15 | -113/+231 | |
Fixed compilation errors Fixed accidental break out of loop when expr_with_block when parsing match expr | |||||
2020-11-28 | Testing some more algorithmic changes | SimplyTheOther | 2 | -102/+389 | |
Fixed syntax errors | |||||
2020-11-28 | Test even more generic algorithm for parsing in for lifetimes | SimplyTheOther | 2 | -19/+9 | |
2020-11-28 | Added more error_at formatting fixes | SimplyTheOther | 4 | -184/+190 | |
Debug for parsing failure with partially consolidated lifetime parsing More debug for parsing failure Corrected the apparent lack of skip_token in parse_lifetime_param() | |||||
2020-11-28 | Attempt to significantly reduce warning count by modifying error message format | SimplyTheOther | 3 | -428/+457 | |
2020-11-28 | Working on consolidating some other parsing functions | SimplyTheOther | 2 | -138/+241 | |
2020-11-28 | Attempt to consolidate CompoundAssignmentExpr parsing | SimplyTheOther | 2 | -20/+116 | |
2020-11-28 | Attempt consolidation of ArithmeticOrLogicalExpr parsing | SimplyTheOther | 2 | -32/+127 | |
Fixed typo of MODULUS as MODULO | |||||
2020-11-28 | Attempt to fix the ExprWithoutBlock in ExprStmtWithoutBlock issue | SimplyTheOther | 4 | -126/+191 | |
First step toward consolidation of similar parsing functions (ComparisonExpr in this case) Debug output for apparent parsing failure Attempt to fix problem with non-digit character after 0 being mistaken as non-decimal int literal Attempt to fix incorrect tokenisation of a dot then a decimal Try new implementation of token splitting rather than token replacing | |||||
2020-11-28 | Converted Parser to template in preparation for macro expansion | SimplyTheOther | 7 | -14106/+14220 | |
2020-11-28 | Potential modifications to buffered_queue to move when resizing instead of ↵ | SimplyTheOther | 3 | -115/+60 | |
copying - test if works properly Added messages to buffered_queue to debug assertion failure Attempt to fix the buffered_queue issue Removed some debug in buffered_queue | |||||
2020-11-28 | Attempt to modify buffered_queue to take ownership of a source rather than ↵ | SimplyTheOther | 17 | -5658/+3934 | |
reference, other cleanup Attempt to fix compile errors caused by make_shared with private constructor Attempt to fix compile errors Attempt to fix appearance of no characters in lexer | |||||
2020-11-28 | Massive lexer cleanup and refactoring - moved lots of stuff out of main method | SimplyTheOther | 3 | -2267/+2232 | |
Minor changes to parse_non_decimal_int_literal to fix naming Another minor fix regarding naming in lexer More lexer refactoring to reduce size of build_token() method | |||||
2020-11-28 | Attempted to solve string escape vs null character location issues | SimplyTheOther | 2 | -59/+27 | |
2020-11-28 | Lexer cleanup | SimplyTheOther | 6 | -405/+426 | |
2020-11-28 | Miscellaneous improvements to various target hooks | SimplyTheOther | 8 | -549/+638 | |
2020-11-28 | i386 build fix against latest gcc | Philip Herron | 1 | -14/+14 | |
2020-11-28 | Improvements to aarch64 target hook | SimplyTheOther | 2 | -96/+117 | |
2020-11-28 | Improved and tidied up ARM target hook | SimplyTheOther | 1 | -191/+153 | |
2020-11-28 | Enhancements to x86 target hook, should be feature complete with llvm to the ↵ | SimplyTheOther | 1 | -138/+406 | |
greatest extent possible | |||||
2020-11-28 | Added Xtensa target hook (or provisional one at least) | SimplyTheOther | 1 | -0/+14 | |
2020-11-28 | Added Visium target hook (or at least provisional one) | SimplyTheOther | 1 | -0/+24 | |
2020-11-28 | Added VAX target hook (or provisional one at least) | SimplyTheOther | 1 | -0/+17 | |
2020-11-28 | Added NEC V850 target hook (or provisional one at least) | SimplyTheOther | 6 | -1/+94 | |