Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>NLS - Natural Language SourceNew to Visual Studio Code? Get it now.
NLS - Natural Language Source

NLS - Natural Language Source

Mnehmos

|
1 install
| (0) | Free
Language support for .nl specification files - syntax highlighting, snippets, diagnostics, and nlsc integration
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

NLS - Natural Language Source

NLS Logo

The source code is English. The compiled artifact is Python.

Language support for NLS (Natural Language Source) specification files in Visual Studio Code.

Features

Syntax Highlighting

Full syntax highlighting for .nl files including:

  • Directives - @module, @version, @target, @imports
  • ANLU blocks - [function-name] with PURPOSE, INPUTS, GUARDS, LOGIC, RETURNS
  • Type definitions - @type, @invariant
  • Test blocks - @test, @property
  • Comments - Line comments with #

Code Snippets

Quickly scaffold NLS constructs:

Prefix Description
anlu Full ANLU function block
type Type definition
test Test block
prop Property-based test
inv Type invariant
module Module header
guard Guard clause

Diagnostics

Real-time validation powered by the nlsc compiler:

  • Syntax errors
  • Undefined dependencies
  • Type mismatches
  • Invalid guards

Commands

  • NLS: Compile File - Compile the current .nl file to Python
  • NLS: Verify File - Validate syntax without compiling
  • NLS: Run Tests - Execute @test blocks

Requirements

Install the NLS compiler:

pip install nlsc

Quick Start

  1. Create a new file with .nl extension
  2. Start with a module directive:
@module calculator
@target python

[add]
PURPOSE: Add two numbers
INPUTS:
  - a: number
  - b: number
RETURNS: a + b
  1. Run NLS: Compile File to generate Python code

Links

  • Documentation
  • GitHub Repository
  • PyPI Package
  • Report Issues

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft