{"id":32123906,"url":"https://github.com/jamestiotio/compstruct-vscode","last_synced_at":"2026-02-19T08:01:27.257Z","repository":{"id":43064543,"uuid":"301287801","full_name":"jamestiotio/compstruct-vscode","owner":"jamestiotio","description":"VSCode Extension for Computation Structures Courseware (jsim, tmsim, bsim)","archived":false,"fork":false,"pushed_at":"2023-07-19T01:02:48.000Z","size":2626,"stargazers_count":4,"open_issues_count":2,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-23T02:19:50.406Z","etag":null,"topics":["bsim","computation-structures","hacktoberfest","jsim","linter","mit","programming-language","programming-languages","regex","regex-match","regex-pattern","regexp","snippets","sutd","syntax-highlighting","tmsim","typescript","uasm","vscode","vscode-extension"],"latest_commit_sha":null,"homepage":"https://marketplace.visualstudio.com/items?itemName=jamestiotio.compstruct-vscode","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jamestiotio.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null}},"created_at":"2020-10-05T03:55:41.000Z","updated_at":"2024-05-05T11:59:24.000Z","dependencies_parsed_at":"2022-09-03T12:20:25.731Z","dependency_job_id":"18a010a0-c099-43c8-a9a8-a3e4bc45b536","html_url":"https://github.com/jamestiotio/compstruct-vscode","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jamestiotio/compstruct-vscode","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamestiotio%2Fcompstruct-vscode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamestiotio%2Fcompstruct-vscode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamestiotio%2Fcompstruct-vscode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamestiotio%2Fcompstruct-vscode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jamestiotio","download_url":"https://codeload.github.com/jamestiotio/compstruct-vscode/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamestiotio%2Fcompstruct-vscode/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29608152,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-19T06:47:36.664Z","status":"ssl_error","status_checked_at":"2026-02-19T06:45:47.551Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bsim","computation-structures","hacktoberfest","jsim","linter","mit","programming-language","programming-languages","regex","regex-match","regex-pattern","regexp","snippets","sutd","syntax-highlighting","tmsim","typescript","uasm","vscode","vscode-extension"],"created_at":"2025-10-20T21:24:36.172Z","updated_at":"2026-02-19T08:01:27.251Z","avatar_url":"https://github.com/jamestiotio.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# compstruct-vscode\n\nVSCode Extension for Computation Structures Courseware (jsim, tmsim, bsim)\n\n\u003cp align=\"center\"\u003e\u003ca href=\"https://marketplace.visualstudio.com/items?itemName=jamestiotio.compstruct-vscode\u0026ssr=false#review-details\"\u003e\u003cimg src=\"https://img.shields.io/visual-studio-marketplace/stars/jamestiotio.compstruct-vscode?style=for-the-badge\u0026colorA=FBBD30\u0026colorB=F2AA08\"/\u003e\u003c/a\u003e \u003ca href=\"https://marketplace.visualstudio.com/items?itemName=jamestiotio.compstruct-vscode\"\u003e\u003cimg src=\"https://img.shields.io/visual-studio-marketplace/d/jamestiotio.compstruct-vscode?style=for-the-badge\u0026colorA=5DDB61\u0026colorB=4BC74F\u0026label=DOWNLOADS\"/\u003e\u003c/a\u003e \u003ca href=\"https://marketplace.visualstudio.com/items?itemName=jamestiotio.compstruct-vscode\"\u003e\u003cimg src=\"https://img.shields.io/visual-studio-marketplace/i/jamestiotio.compstruct-vscode?style=for-the-badge\u0026colorA=8a2be2\u0026colorB=7f26cc\u0026label=INSTALLS\"/\u003e\u003c/a\u003e\u003c/p\u003e\n\n## Installation\n\nYou can install this extension from the [Visual Studio Code Marketplace](https://marketplace.visualstudio.com/items?itemName=jamestiotio.compstruct-vscode) or from the [Open VSX Registry](https://open-vsx.org/extension/jamestiotio/compstruct-vscode)!\n\n## Description\n\nThis repository hosts a [Visual Studio Code](https://code.visualstudio.com/) [extension](https://marketplace.visualstudio.com/VSCode) with rich language support for the courseware used in the (labs of) Computation Structures module (both MIT 6.004 and SUTD 50.002): jsim, tmsim and bsim.\n\nThese tools were originally developed by MIT:\n\n-   JSim is a netlist simulator language which serves as a circuit simulator design environment.\n-   BSim is a Beta ALU architecture simulator. The β is a RISC processor design (general-purpose 32-bit architecture) used for the course.\n-   TMSim is a Turing Machine simulator.\n\n## Features\n\nCurrently available features:\n\n-   [x] Syntax Highlighting\n-   [x] Code Navigation (Folding)\n-   [x] Code Formatting (Comment Toggling, Auto-Indentation, Bracket-Matching, Bracket-Autoclosing \u0026 Bracket-Autosurrounding)\n-   [x] Snippet Completion (Auto Code Completion)\n-   [x] One click to run current file in JSim/BSim\n-   [x] Commands to run current file in JSim/BSim\n\nFeatures in the works:\n\n-   [ ] Semantic Highlighting\n-   [ ] Linting (Syntax \u0026 Style Error Checking)\n-   [ ] Refactoring\n-   [ ] Debugging\n-   [ ] IntelliSense (Hover Information, Parameter Info, Auto-Completion \u0026 Content Assist)\n-   [ ] Code Navigation (Definition Jumps)\n-   [ ] Language Configuration\n\nYou can request for more features by submitting an issue!\n\nFeel free to also contribute via submitting a pull request! For contributors, please check the included tool documentations in the [`docs`](https://github.com/jamestiotio/compstruct-vscode/tree/main/docs) folder for your reference when further developing this extension!\n\n## Requirements\n\nThis section will describe any requirements and dependencies for this extension, as well as how to install and configure them for this extension to work properly.\n\nCurrently, only [Microsoft Visual Studio Code](https://code.visualstudio.com/) (or its vendor-neutral open-source alternatives) is needed to run this extension. As more features are added to this extension, more requirements might be needed in the future, so do keep a lookout!\n\n## Extension Settings\n\nThe extension contributes the following settings (configuration):\n- `compstruct-vscode.statusBarButton.JSim`: Enable/Disable 'Run JSim' button in status bar\n- `compstruct-vscode.statusBarButton.BSim`: Enable/Disable 'Run BSim' button in status bar\n- `compstruct-vscode.popups.findJarNotification`: Show/Hide information message when finding `.jar` files\n\n## Known Issues\n\nThis section will call out known issues to help limit users opening duplicate issues against this extension.\n\n### JSim Continuation Lines Detection Issue\n\nMultiline detection which spans across newline characters (and indicated by lines starting with the character `+`) might not be supported yet by the TextMate grammar engine as elaborated [here](https://github.com/microsoft/vscode-textmate/issues/32). To add support for this feature, might need to migrate to Monarch instead of TextMate or implement a more sophisticated, real-time detector using TypeScript. Dynamic programmatic analysis could also be done via implementing a language server (which would be the ideal choice going forward, instead of simply only relying on declarative features).\n\n### Syntax Highlighting for Negative Numbers\n\nMore work needs to be done since attempts of using regular expressions to syntax-highlight negative numbers (i.e. including the hyphens) did not work as intended.\n\n## Additional Resources\n\nHere are some available useful resources (such as syntax highlighting for other editors and official MIT source code for JSim, BSim and TMSim online editors):\n\n-   [BSim Syntax Highlighting on Emacs](https://github.com/nexaitch/bsim-mode)\n-   [BSim Syntax Highlighting on Vim](https://github.com/JSeam2/BSimSyntaxHighlighting)\n-   [JSim and TMSim Syntax Highlighting on Atom](https://github.com/tjjjwxzq/language-jsim)\n-   [Old MIT 6.004 Courseware Materials](https://github.com/terman/6.004_courseware)\n-   [Newer Latest MIT 6.004 Browser-Based Online Courseware Tools](https://github.com/6004x)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamestiotio%2Fcompstruct-vscode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjamestiotio%2Fcompstruct-vscode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamestiotio%2Fcompstruct-vscode/lists"}