A Visual Studio Code extension with basic syntax highlighting for ApLang, the programming languaged used on the AP Computer Science Principles exam.
- Install Rust and ApLang
- Install the ApLang extension for Visual Studio Code
- Open or create a new
.ap
file and start coding!
- Website
- ApLang Repo
- ApLang Book Repo
- ApLang VSCode Plugin Repo (You are here)
The ApLang extension provides syntax highlighting for the following language features:
- Imports: Supports module imports using
IMPORT
andMOD
keywords. - Functions: Highlights both function definitions and calls, with support for function parameters and exported functions (
EXPORT
). - Control Flow: Recognizes flow control keywords like
IF
,ELSE
,FOR
,RETURN
, etc. - Operators: Logical operators (
AND
,OR
,NOT
), comparison operators (=
,!=
,>
,<
), and mathematical operators (+
,*
,-
,/
) are supported. - Variables and Constants: Highlights numeric constants, booleans, and variable names.
- Strings: Supports both single-quoted and double-quoted string formats with interpolation.
- Comments: Both single-line (
//
) and block comments (/* */
) are highlighted, with support for nested block comments.
- Code Formatting & Refactoring
- Debugging
Please submit an issue ticket
We welcome contributions to the APLang extension! Whether you're fixing bugs, adding new features, or improving documentation, your help is appreciated!
To make code changes:
- Fork the repository.
- Create a new branch for your features or bug fixes.
- Write tests for your changes. (if applicable)
- Make sure all tests pass.
- Submit a pull request.
Standard stuff!
This extension was created by @vio-eli