Commit Graph
92 Commits
Author SHA1 Message Date
Stone_Red 4bcaf30d9e Add benchmarks 2026-03-05 20:20:56 +01:00
Stone_Red 8ef621e61b Upgrade to .NET 10, update packages, enable AOT and cleanup code 2026-03-05 18:00:34 +01:00
Stone_Red 1080873deb Improve readme 2026-03-05 18:00:17 +01:00
Stone_Red df5ef64293 Add MIT License to the project 2026-03-05 15:27:33 +01:00
Stone_Red 25f12db73b Update project banner with new logo, font, and pattern in README.md 2026-03-05 14:04:39 +01:00
Stone_Red 367a84ff00 Add logo 2026-03-05 14:03:12 +01:00
Stone_Red f806d86a2e Clarify language description and wording in docs and improve API section phrasing 2026-03-05 12:55:18 +01:00
Stone_Red 672479bdee Fix some mistakes in the language reference 2026-03-05 03:08:42 +01:00
Stone_Red 8e882a5fd9 Update README to use standard template 2026-03-05 02:30:26 +01:00
Stone_Red e05b468bda Simplify boolean condition checks in code examples 2026-03-05 02:30:12 +01:00
Stone_Red 863356bdb4 Replace British spellings with American in XML docs 2026-03-05 02:23:41 +01:00
Stone_Red 7bad3dcbc2 Fix small issues in docs 2026-03-05 01:56:28 +01:00
Stone_Red 8a15040baa Add methods for removing and disabling statements, with related tests 2026-03-05 01:38:50 +01:00
Stone_Red ecb6415457 Add tests for loop exit, local/global scope, concurrency, and string escapes 2026-03-05 01:26:16 +01:00
Stone_Red 265f20d4b7 Move YesNtInterpreter constructor above custom statement methods 2026-03-05 01:03:32 +01:00
Stone_Red a7c76d8d16 Convert input to unsafe string before starting process execution 2026-03-05 00:49:44 +01:00
Stone_Red 819ed12495 Refactor argument handling in ExecuteProgramWithArgs for clarity 2026-03-05 00:47:24 +01:00
Stone_Red a35762545e Rename files to correct spelling errors in their filenames 2026-03-05 00:38:09 +01:00
Stone_Red 071d9a937e Switch safe string encoding from ~tilde codes to SOH-delimited codes throughout 2026-03-05 00:24:20 +01:00
Stone_Red 7eea8756bc Fix editor not refreshing after using debug and run keyboard shortcuts 2026-03-04 23:38:22 +01:00
Stone_Red 64c61f0f8c Improve stack trace error handling. 2026-03-04 23:38:01 +01:00
Stone_Red 882c4f3a51 Add proper docs 2026-03-04 23:33:08 +01:00
Stone_Red 163bf677ae Add line formatting with auto indentation and fix syntax highlighting in editor 2026-03-04 23:02:40 +01:00
Stone_Red a2f621d3f4 Add XML docs 2026-03-04 20:44:06 +01:00
Stone_Red ac78afc12f Fix warnings 2026-03-04 20:34:45 +01:00
Stone_Red 10d5766873 Centralize exit messages in ExitMessages class 2026-03-04 20:32:25 +01:00
Stone_Red 3411bb88de Refactor list statement methods to use empty array checks over null checks 2026-03-04 20:24:18 +01:00
Stone_Red d00295516c Merge setup parameter into ExecuteAndCapture method with default value 2026-03-04 19:59:01 +01:00
Stone_Red 27f72f1413 Remove Program.cs and its main entry point from interpreter project 2026-03-04 19:56:08 +01:00
Stone_Red b2fdd9c841 Remove Initialize calls and add AddStatement tests 2026-03-04 19:41:19 +01:00
Stone_Red 8e0abf155a Make YesNtInterpreter usable as a library and add AddStatement method to be able to define custom statement 2026-03-04 19:40:46 +01:00
Stone_Red 9813426f06 Code cleanup 2026-03-04 18:12:08 +01:00
Stone_Red 9e9123f58d Swap variable and string regex order and update highlight colors to prevent highlighting glitches 2026-03-04 18:00:08 +01:00
Stone_Red f411aa7433 Add string highlighting with DarkYellow and make sure variable coloring gets applied before others 2026-03-04 17:50:58 +01:00
Stone_Red e47f614e62 Convert import statement path from safe string before combining paths 2026-03-04 17:40:14 +01:00
Stone_Red 86819900a0 Add string literal parsing with escapes and related tests 2026-03-04 16:21:49 +01:00
Stone_Red 7f58fb4aaf Add step debug mode and refactor command handling for run/debug 2026-03-04 16:01:23 +01:00
Stone_Red e99df1e3f2 Add list statement support with tests for creation, access, and errors 2026-03-04 15:47:54 +01:00
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