-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add support for randomised context switching * Remove unused import * Attempt to support go statements * Support for functions with multiple return values (#31) (#34) * Implement fmt.Print() * Update tests for println and print and implement trivial case for printf * Fix array newline not ignored between { and first element * Support for functions returning multiple values at once * Remove duplicate test cases * Improve concurrency handling to pass by value but random execution still does not work * Implement mutex * Fix defer not working inside non-main contexts * Add more test cases for mutex * Add method checking test case for mutex * Fix defer and clean up duplicate files * Remove debugging variables * Add test cases for parsing for if-else statements * Transfer test case from defer to go statement * Support other numeric types and fix go statement remnant closure on OS * Fix local browser testing error * Remove redundant functions and refactor fork to go * Fix multiple return values logic and added more test cases * Adjust logic for handling functions that return multiple values * Implement single level type declaration * Improve basic test cases for type declaration * Update logic to no longer use DeclaredNode * Refactor executor to runtime, compiler to executor, parser to compiler * Adjust logic for declared types to make literals commit to declared types instead of the other way round * Implement declared type logic check for binops * Fix uninitialised declared type variables not having zero values * Implement type declarations for functions * Implement type declaration and functions with multiple return values for arrays * Implement support for same name type across different scopes * fix whitespace removal logic for structs * Change memory layout for arrays to be contiguous * Remove dummy variables * Change memory layout for arrays to be contiguous, however does not work without explicit size declaration * Fix slices and structs
- Loading branch information
1 parent
c7ae815
commit 9deb6cf
Showing
106 changed files
with
4,467 additions
and
2,421 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "node", | ||
"request": "launch", | ||
"name": "Launch Program", | ||
"skipFiles": [ | ||
"<node_internals>/**" | ||
], | ||
"program": "${workspaceFolder}\\src\\index.tsx", | ||
"outFiles": [ | ||
"${workspaceFolder}/**/*.js" | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
123 changes: 0 additions & 123 deletions
123
src/go-virtual-machine-main/frontend/components/CodeIDE/CodeIDE.tsx
This file was deleted.
Oops, something went wrong.
66 changes: 0 additions & 66 deletions
66
src/go-virtual-machine-main/frontend/components/CodeIDE/CodeIDEButtons.tsx
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
src/go-virtual-machine-main/frontend/components/CodeIDE/index.tsx
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.