Enable the use of put and get when writing to the device index.#11
Enable the use of put and get when writing to the device index.#11gregwinn wants to merge 3 commits intoawilliamson:masterfrom
put and get when writing to the device index.#11Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR adds support for the new IC10 language instructions "put" and "get" by updating the syntax highlighting file, updating the package version, and documenting the changes in the CHANGELOG.
- Added "put" and "get" keywords to the ic10.tmLanguage.json regex
- Updated package.json to version "0.4.1" to reflect the new features
- Documented the changes in CHANGELOG.md
Reviewed Changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| syntaxes/ic10.tmLanguage.json | Updated regex to include the "put" and "get" keywords for syntax support |
| package.json | Downgraded the version from "0.7.4" to "0.4.1" – review versioning semantics |
| CHANGELOG.md | Added entry for version "0.4.1" documenting the new syntax support |
| "description": "IC10 MIPS-like Language Support for Stationeers - Featuring completions, hover information, signature help, goto definition, diagnostics, and more.", | ||
| "publisher": "AshleyWilliamson", | ||
| "version": "0.7.4", | ||
| "version": "0.4.1", |
There was a problem hiding this comment.
The package version was decreased from 0.7.4 to 0.4.1, which may conflict with semantic versioning conventions. Consider revising the version to reflect an increment for the new feature additions.
| "version": "0.4.1", | |
| "version": "0.8.0", |
|
I was preparing to add support for more keywords and in order to work we need an update for the ic10lsp language server as well. I did a pull request there and hopefully we can get this going. If you want to test the new release, here is the exe. Add it to |
|
Also, here is the full list of current keywords, if you want to update the json l|s|ls|lr|sb|lb|alias|move|add|sub|sdse|sdns|slt|sgt|sle|sge|seq|sne|sap|sna|and|or|xor|nor|mul|div|mod|j|bltz|bgez|blez|bgtz|bdse|bdns|beq|bne|bap|bna|jal|brdse|brdns|bltzal|bgezal|blezal|bgtzal|beqal|bneal|jr|bdseal|bdnsal|brltz|brgez|brlez|brgtz|breq|brne|brap|brna|sqrt|round|trunc|ceil|floor|max|min|abs|log|exp|rand|yield|label|peek|push|pop|hcf|select|blt|bgt|ble|bge|brlt|brgt|brle|brge|bltal|bgtal|bleal|bgeal|bapal|bnaal|beqz|bnez|bapz|bnaz|breqz|brnez|brapz|brnaz|beqzal|bnezal|bapzal|bnazal|sltz|sgtz|slez|sgez|seqz|snez|sapz|snaz|define|sleep|sin|asin|tan|atan|cos|acos|atan2|get|getd|put|putd|bnan|brnan|lbn|lbns|lbs|not|sbn|sbs|sla|sll|sra|srl|snan|snanz|ss|bdnvl|bdnvs |
|
Check your package version number, it does not seem correct to me |
This PR adds syntax highlighting and support for the
putandgetinstructions, which are essential for working with the device base (db) storage in IC10.Overview
The
putandgetinstructions allow reading from and writing to the device base's internal storage, providing a way to:Syntax
put db # Write source value to db at index
get db # Read value from db at index into dest
Usage Examples
Example 1: Device Name Table for Batch Operations
Example 2: Temporary Value Storage
Storage Indices
Use Cases
This addition improves IC10 language support by recognizing these commonly used but previously unsupported instructions.