Commit Graph
54 Commits
Author SHA1 Message Date
Stone_Red 344e9e644e Use source generator instead of reflection 2026-03-04 15:06:43 +01:00
Stone_Red d4cc1d1c28 Use var instead of let for variables 2026-03-04 14:55:09 +01:00
Stone_Red a5f521912e Add new tests for console, function, system, variable, and code flow statements 2026-03-04 14:49:54 +01:00
Stone_Red 36d8735fbb Remove manual variable declaration highlighting from SyntaxHighlighter and add color to VariableStatements 2026-03-04 14:48:15 +01:00
Stone_Red 317bca84d3 Enforce label and function statements to end with ':' and update syntax checks 2026-03-04 14:33:47 +01:00
Stone_Red 299558df70 Add support for block-style if/else and while loop statements with tests 2026-03-04 14:28:04 +01:00
Stone_Red 9d43f1373f Make syntax more readable 2026-03-04 14:04:00 +01:00
Stone_Red 11200cbff8 Don't throw exception when line that contains > contains no variable found 2025-03-04 15:14:01 +01:00
Stone_Red 1df0d34841 Add more unit test 2024-08-08 23:57:55 +02:00
Stone_Red 9a6f1d7806 Escape invisible character is debug mode 2024-08-08 23:57:40 +02:00
Stone_Red ec2f294796 Fix exec statement and syntax highlighter 2024-08-07 23:31:53 +02:00
Stone_Red cf274e1db9 Add more escape codes 2024-08-07 23:31:19 +02:00
Stone_Red 7e357884f5 get and out statements can now be placed anywhere and function arguments are now always in correct order 2024-08-07 21:20:00 +02:00
Stone_Red c3bc324519 Reset function in and out parameters stack 2024-08-07 20:17:59 +02:00
Stone_Red 7078ed5637 Upgrade to .NET 8 and code cleanup 2024-08-07 19:48:03 +02:00
Stone_Red 84afe70c96 Fix crash when resizing and cursor is off screen 2023-09-28 16:27:36 +02:00
Stone_Red 1ac6d7790b Automatically redraw console window when size chnages 2023-09-28 14:43:53 +02:00
Stone_Red ce3715c1b5 Reformatting and reimperilment escape codes 2023-09-27 17:17:28 +02:00
Stone_Red 79df5c9b97 Many improvements and bug fixes 2023-09-27 12:15:38 +02:00
Stone_Red 2e023f1a4e Add empty cwl command 2022-11-17 14:07:29 +01:00
Stone_Red ef1f731adc Fix exc command 2022-11-17 14:07:11 +01:00
Stone_Red 9d22381085 Rename SaveString to SafeString 2022-11-17 12:58:05 +01:00
Stone_Red 0f7f63ae9a Improve Regex performance and change .NET version to .NET 7 2022-11-17 12:37:32 +01:00
Stone_Red e539813314 Use correct directory when importing other file 2022-11-17 11:54:01 +01:00
Stone_Red 1ced6f393c Improve code formatting 2022-11-17 11:40:51 +01:00
Stone_Red 533ad23c4d Fix error when loading empty file 2022-11-17 09:29:29 +01:00
Stone_Red dd6fbf3be7 Add system statements ('exc') 2022-05-24 19:49:25 +02:00
Stone_Red 3c98c2b26f Code structure and speed imporvments 2022-04-28 19:58:30 +02:00
Stone_Red 3c78755858 Add basic tests 2022-04-21 14:27:39 +02:00
Stone_Red c1b581e2db Fix bugs and add new statement
- Add clear call stack (`ccs`) statement
- Use `\v` instead of `\r` to support escape sequences in the future
2022-03-31 21:51:31 +02:00
Stone_Red 1dfa39492f Change namespace of some files 2022-03-31 13:23:19 +02:00
Stone_Red 10017cf01d Merge remote-tracking branch 'origin/main' 2022-03-31 13:01:58 +02:00
Stone_Red 510d2d910c Add more statements and bug fixes
- Add `Execute(List<string>...` method to interpreter
- Add escape sequence (`!!`)
- Fix `Evaluator.Calulate` method not correctly handling `-` and `+` prefixes
2022-03-31 13:01:31 +02:00
Stone_Red 3333641541 Add more statements and bug fixes
Add `Execute(List<string>...` method to interpreter
Add escape sequence (`!!`)
Fix `Evaluator.Calulate` method not correctly handling `-` and `+` prefixes
2022-03-31 13:00:12 +02:00
Stone_Red 29bbcebf74 Change code flow and variable statements
- Labels (`lbl`) in functions are now local
- Fix code smell problems
2022-03-31 12:56:35 +02:00
Stone_Red 6a4fe4f871 Change logic of some changes
- `%rnd` now returns a random integer between `32767` and `int.MaxValue`
- Fix syntax hyglighing problems when using comments
- Remove the `mod` statement
2022-03-27 20:25:44 +02:00
Stone_Red 20f7f16dd9 - Add mod (%) and pow (^) operator
- Fix task creation bug
2022-03-25 23:49:13 +01:00
Stone_Red 0a4406d21f New features and bug fixes
- Fix import (`imp`) bug-
- Add is in parameter available (`isi`) statement
- Add is out parameter available (`iso`) statement
2022-03-24 21:16:32 +01:00
Stone_Red 83f99d4dd5 Code structure improvements 2022-03-10 12:43:22 +01:00
Stone_Red c02104db5a Update README.md 2022-01-15 00:10:00 +01:00
Stone_Red 0fc0a1fe46 - Add custom exceptions 2022-01-13 15:01:41 +01:00
Stone_Red 4bef308ff2 - Add predefined variables
- Add `mod` function
- Improve function calling syntax
2022-01-13 13:39:02 +01:00
Stone_Red ea5bbda2c7 - Fix code editor resize problems
- Fix crash when using `get` our `out` multiple times with the same variable name
- Show the name of the file in which the error occured
2022-01-13 07:30:37 +01:00
Stone_Red 719db0f74b - Fix another calculation bug 2022-01-11 22:50:45 +01:00
Stone_Red 2522868379 - Change parameter keywords color
- Fix calculation bug
2022-01-11 22:03:08 +01:00
Stone_Red 895eb51c8d - Add function in and out parameters 2022-01-11 19:08:15 +01:00
Stone-Red-Code 2a7e8074ba - Add functions
- Code improvements
2021-11-19 20:49:55 +01:00
Stone-Red-Code 812b780942 - Better Syntax coloring 2021-10-17 00:09:17 +02:00
Stone-Red-Code e6d31c8277 - Improve debug output 2021-10-14 15:03:44 +02:00
Stone-Red-Code 80fda48944 - Add global variables
- Add task id's
- Fixed editor bugs
- Fix input handler bugs
2021-10-13 22:16:57 +02:00
Stone-Red-Code ae27262a51 - Add some editor key combinations
- Improve saving performance
2021-10-11 20:00:13 +02:00
Stone-Red-Code 8b21c99f54 - Add cls statement (clear screen)
- Improved code structure of the editor
- Some bug fixes
2021-10-10 21:20:51 +02:00
Stone-Red-Code 68a9bde5d9 - Add tasks
- Add check if file exist
- Improved code structure
2021-10-09 20:23:28 +02:00
Stone-Red-Code c40d1f45e0 Initial commit 2021-10-08 12:48:48 +02:00