Skip to content

snowfoxsh/aplang-vscode-plugin

Repository files navigation

ApLang extension for Visual Studio Code

A Visual Studio Code extension with basic syntax highlighting for ApLang, the programming languaged used on the AP Computer Science Principles exam.

Quick Start

  1. Install Rust and ApLang
  2. Install the ApLang extension for Visual Studio Code
  3. Open or create a new .ap file and start coding!

Links

Feature Details

The ApLang extension provides syntax highlighting for the following language features:

  • Imports: Supports module imports using IMPORT and MOD 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.

Planned Features

  • Code Formatting & Refactoring
  • Debugging

Feature Request

Please submit an issue ticket

Contributing

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:

  1. Fork the repository.
  2. Create a new branch for your features or bug fixes.
  3. Write tests for your changes. (if applicable)
  4. Make sure all tests pass.
  5. Submit a pull request.

Standard stuff!

Credits

This extension was created by @vio-eli

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published