Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>EasyNew to Visual Studio Code? Get it now.
Easy

Easy

Alexander Demin

| (0) | Free
Syntax highlighting, compile errors as you type, hover and go to definition for Easy, the teaching language of Wetherell's 'Etudes for Programmers' (1978).
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Easy for VS Code

Language support for Easy, the small Algol-style teaching language from Charles Wetherell's book Etudes for Programmers (1978): syntax highlighting, compile errors as you type, hover and go to definition.

The extension is built on @begoon/easyc, the Easy compiler. Its grammar is generated from the compiler's word lists and checked against its lexer, and its language server runs the compiler itself, so the editor sees your program exactly as the compiler does.

Easy source highlighted in VS Code

Features

Syntax highlighting

Keywords, types, builtin functions (LENGTH, SUBSTR, CHARACTER, FIX, FLOAT, FLOOR), constants, numbers, strings, comments, labels and the names of programs, types, functions and procedures. The lexical details follow the compiler:

  • strings use "" for an embedded quote and have no backslash escapes;
  • /* ... */ comments nest, // comments run to the end of the line;
  • real literals such as 2., 3.25e-4 and 2e10 are one token, while 1.5+2.0 is two numbers and an operator.

Compile errors as you type

Every change is compiled in the background, and the compiler's error is underlined on the token it points at: unterminated strings, syntax errors, undefined names, type mismatches and the rest.

An undefined variable underlined

Hover

Hover over a name to see its declaration in Easy syntax: variables, parameters, arrays and structures, functions with their signatures, procedures, types and builtins. Names are resolved through nested scopes, so a local variable that shadows a global shows the local's type.

Hover showing DECLARE ptr INTEGER

Go to definition

F12 (or Cmd/Ctrl-click) on a variable, parameter, function, procedure or type jumps to where it is declared.

Editing

// and /* */ comment toggling, bracket matching, and auto-closing of brackets, quotes and block comments in .easy files.

Getting started

  1. Install the extension and open a file ending in .easy.

  2. Write a program:

    PROGRAM Hello:
      DECLARE name STRING;
      SET name := "world";
      OUTPUT "Hello, " || name;
    END PROGRAM Hello;
    
  3. Compile and run it with the compiler, which needs Node.js 24 or later and a C compiler (Clang or GCC):

    npx @begoon/easyc run hello.easy
    

    npx @begoon/easyc hello.easy writes hello.c (plus the runtime.c it includes) for compiling with cc yourself.

No compiler installation is needed for the extension: it bundles its own copy of the compiler.

You can also try Easy without installing anything in the Easy playground, which compiles and runs programs in the browser.

Notes

  • The compiler stops at the first error, so at most one problem is shown at a time; fix it and the next one, if any, appears.
  • Each file is analysed on its own. Easy programs are single files, and EXTERNAL declarations are parsed but not resolved across files.

Links

  • Compiler, language notes and examples
  • Issues
  • Changelog

Development

The extension lives in the vscode/ folder of the compiler repository.

just vscode-grammar   # regenerate syntaxes/easy.tmLanguage.json from easyc.ts
just test-vscode      # grammar agrees with the lexer; server agrees with the compiler

Open vscode/ in VS Code and press F5 to run it in a new window. Releases are published from GitHub Actions with Marketplace trusted publishing: just package-vscode builds and tests a .vsix, just release-vscode publishes the version in vscode/package.json.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft