d28cdfcc7b
Improve dead code elimination in optimizer
...
- Refactored dead_store_elimination to separate forward and backward passes
- Improved register forwarding to better detect backward jumps
- Fixed handling of JumpAndLink instructions in register tracking
- Updated optimizer snapshots to reflect improved code generation
The forward pass now correctly eliminates writes that are immediately overwritten.
Register forwarding now better handles conditional branches and loops.
Note: Backward pass for dead code elimination disabled for now - it needs
additional work to properly handle return values and call site analysis.
2025-12-31 02:37:26 -07:00
95c17b563c
More optimizer fixes
CI/CD Pipeline / test (pull_request) Successful in 2m2s
CI/CD Pipeline / build (pull_request) Has been skipped
CI/CD Pipeline / release (pull_request) Has been skipped
2025-12-30 23:34:14 -07:00
dbc4c72c3b
Add .snap.new files to gitignore
2025-12-30 23:00:55 -07:00
964ad92077
More compiler optimizations
2025-12-30 23:00:17 -07:00
63f55b66cb
More optimizations
2025-12-30 22:24:47 -07:00
d19a53bbee
More optimizations and snapshot integration tests
2025-12-30 21:20:46 -07:00
f87fdc1b0a
Added another test to ensure all 3 tuple scenerios are covered
2025-12-30 20:09:45 -07:00
72e6981176
Update tests to reflect new changes with stack cleanup in functions that return tuples
2025-12-30 20:05:10 -07:00
d83341d90b
Update tuples to support member access and function calls
2025-12-30 16:33:11 -07:00
d297f1bd46
Update changelog
2025-12-30 12:52:51 -07:00
90a2becbbb
Bump version to 5.0
2025-12-30 12:51:24 -07:00
a53ea7fd13
removed debug variant macro
2025-12-30 12:49:28 -07:00
c1a8af6aa7
Refactored remaining tests to use check macro
2025-12-30 12:34:47 -07:00
8c8ae23a27
wip -- convert remaining tests to use check
2025-12-30 12:28:53 -07:00
04c205b31d
Fixed compiler bug as a result of the 'check' test variant
2025-12-30 12:05:54 -07:00
c133dc3c80
Refactor tests to use new check variant
2025-12-30 11:58:31 -07:00
9d8a867e5f
Add new macro variant 'check' to ensure there are no errors AND the compiled output matches
2025-12-30 11:53:02 -07:00
e2a45f0d05
Added more tests and updated existing to use snapshot style testing
2025-12-30 11:49:42 -07:00
fc13c465c0
Extract logic into reusable functions for better DRY
2025-12-30 11:21:44 -07:00
1ce3162fc0
Refactor Compiler struct to hold FunctionMetadata struct instead of flattening all that information directly onto the Compiler
2025-12-30 11:15:49 -07:00
3092e97d41
Minor DRY refactor. Added more tuple tests
2025-12-30 02:47:39 -07:00
8029fa82b0
complex tuple expressions supported
2025-12-30 02:38:32 -07:00
6d8a22459c
wip
2025-12-30 02:31:21 -07:00
20f0f4b9a1
working tuple types
2025-12-30 00:58:02 -07:00
5a88befac9
tuple return types just about implemented
2025-12-30 00:32:55 -07:00
e94fc0f5de
Functions returning tuples somewhat working, but they clobber the popped ra
2025-12-29 23:55:00 -07:00
b51800eb77
wip -- tuples compiling. need more work on function invocations
2025-12-29 23:17:18 -07:00
87951ab12f
Support tuple assignment expressions and tuple assignments and declarations with function invocations
2025-12-29 22:33:16 -07:00
00b0d4df26
Create new tuple expression types
2025-12-29 22:17:19 -07:00
6ca53e8959
Merge pull request 'Added support for CRLF windows line endings' ( #11 ) from 41-support-windows-crlf-line-endings into master
...
CI/CD Pipeline / test (push) Successful in 33s
CI/CD Pipeline / build (push) Successful in 1m42s
CI/CD Pipeline / release (push) Successful in 5s
Reviewed-on: #11
0.4.7
2025-12-29 12:32:59 -07:00
8dfdad3f34
Added support for CRLF windows line endings
CI/CD Pipeline / test (pull_request) Successful in 34s
CI/CD Pipeline / build (pull_request) Has been skipped
CI/CD Pipeline / release (pull_request) Has been skipped
2025-12-29 12:29:01 -07:00
e272737ea2
Merge pull request 'Fixed const -> let bug' ( #10 ) from declaration_const_as_let into master
...
CI/CD Pipeline / test (push) Successful in 32s
CI/CD Pipeline / build (push) Successful in 1m43s
CI/CD Pipeline / release (push) Successful in 5s
Reviewed-on: #10
0.4.6
2025-12-29 02:44:50 -07:00
f679601818
Fixed const -> let bug
CI/CD Pipeline / test (pull_request) Successful in 33s
CI/CD Pipeline / build (pull_request) Has been skipped
CI/CD Pipeline / release (pull_request) Has been skipped
2025-12-29 02:31:23 -07:00
3ca6f97db1
Merge pull request 'IC10Editor fix' ( #9 ) from live-reload into master
...
CI/CD Pipeline / test (push) Successful in 33s
CI/CD Pipeline / build (push) Successful in 1m41s
CI/CD Pipeline / release (push) Successful in 4s
Reviewed-on: #9
0.4.5
2025-12-27 22:26:50 -07:00
34817ee111
Merge branch 'master' of ssh://git.biddydev.com:2222/dbidwell/stationeers_lang into live-reload
CI/CD Pipeline / test (pull_request) Successful in 32s
CI/CD Pipeline / build (pull_request) Has been skipped
CI/CD Pipeline / release (pull_request) Has been skipped
2025-12-27 22:19:09 -07:00
9eef8a77b6
Merge pull request 'Update About.xml docs for the workshop' ( #8 ) from documentation into master
...
CI/CD Pipeline / test (push) Successful in 34s
CI/CD Pipeline / build (push) Successful in 1m41s
CI/CD Pipeline / release (push) Has been skipped
Reviewed-on: #8
2025-12-27 22:19:00 -07:00
de31851153
Fixed IC10Editor implementation bug where IC10 code would not update after clicking 'Cancel'
2025-12-27 22:18:21 -07:00
3543b87561
wip
2025-12-27 16:03:36 -07:00
effef64add
Update About.xml docs for the workshop
CI/CD Pipeline / test (pull_request) Successful in 33s
CI/CD Pipeline / build (pull_request) Has been skipped
CI/CD Pipeline / release (pull_request) Has been skipped
2025-12-26 22:33:48 -07:00
794b27b8c6
Merge pull request 'documentation' ( #7 ) from documentation into master
...
CI/CD Pipeline / test (push) Successful in 33s
CI/CD Pipeline / build (push) Successful in 1m42s
CI/CD Pipeline / release (push) Has been skipped
Reviewed-on: #7
2025-12-26 22:02:46 -07:00
27e8987831
removed the temporary example slang scripts from the root directory
CI/CD Pipeline / test (pull_request) Successful in 34s
CI/CD Pipeline / build (pull_request) Has been skipped
CI/CD Pipeline / release (pull_request) Has been skipped
2025-12-26 22:00:28 -07:00
0fdceac22c
changed markdown tags from slang to rust
2025-12-26 21:57:11 -07:00
85f8b136e1
Update markdown tags to use rust instead of mips
2025-12-26 21:56:21 -07:00
c91086157a
Added documentation for various language features and in-game functions. Added example scripts
2025-12-26 21:55:36 -07:00
6bee591484
Merge pull request 'Added stationpedia docs back into the game patches' ( #6 ) from docs-fix into master
...
CI/CD Pipeline / test (push) Successful in 33s
CI/CD Pipeline / build (push) Successful in 1m44s
CI/CD Pipeline / release (push) Successful in 5s
Reviewed-on: #6
0.4.4
2025-12-26 16:20:16 -07:00
c3c14cec23
Added stationpedia docs back into the game patches
CI/CD Pipeline / test (pull_request) Successful in 33s
CI/CD Pipeline / build (pull_request) Has been skipped
CI/CD Pipeline / release (pull_request) Has been skipped
2025-12-26 16:18:24 -07:00
4e885847a8
Merge pull request 'Remove MOD from Plugin.cs which fixed networking' ( #5 ) from slp-removal into master
...
CI/CD Pipeline / test (push) Successful in 34s
CI/CD Pipeline / build (push) Successful in 1m43s
CI/CD Pipeline / release (push) Successful in 5s
Reviewed-on: #5
0.4.3
2025-12-24 22:28:51 -07:00
0ca6b27a11
Remove MOD from Plugin.cs which fixed networking
CI/CD Pipeline / build (pull_request) Has been skipped
CI/CD Pipeline / release (pull_request) Has been skipped
CI/CD Pipeline / test (pull_request) Successful in 34s
2025-12-24 22:27:43 -07:00
9b8900d7a7
Merge pull request 'ic10editor-update' ( #4 ) from ic10editor-update into master
...
CI/CD Pipeline / test (push) Successful in 33s
CI/CD Pipeline / build (push) Successful in 1m43s
CI/CD Pipeline / release (push) Successful in 5s
Reviewed-on: #4
0.4.2
2025-12-24 12:41:00 -07:00
792bba4875
Removed unused macro imports as they are implicit
CI/CD Pipeline / test (pull_request) Successful in 33s
CI/CD Pipeline / build (pull_request) Has been skipped
CI/CD Pipeline / release (pull_request) Has been skipped
2025-12-24 12:39:21 -07:00