More Premium Hugo Themes Premium Nextjs Themes

Nlang

Prototype of the Nlang Scripting Language with Intellisense Code Editor

Nlang

Prototype of the Nlang Scripting Language with Intellisense Code Editor

Author Avatar Theme by lauslim12
Github Stars Github Stars: 5
Last Commit Last Commit: Apr 27, 2023 -
First Commit Created: Dec 18, 2023 -
Nlang screenshot

Overview

The Nlang Scripting Language is a prototype that offers an intellisense code editor, autocomplete, real-time error checking, and a real language parser. The project provides comprehensive documentation on its website, covering everything from the background and features of the language to instructions on using the grammar and the API. The application requires Node.js 18+ and Yarn Classic to run, with additional software packages needed for experimenting with the language and recompiling it.

Features

  • Intellisense code editor
  • Autocomplete
  • Real-time error checking
  • Real language parser
  • Comprehensive documentation
  • Ability to experiment with and recompile the grammar

Installation

To run the Nlang application, you need to have the following software packages installed:

  • Node.js 18+
  • Yarn Classic

For experimenting with and recompiling the grammar, you also need:

  • Python 3.11+ (recommended)
  • ANTLR4 Tools

To install and run the application, follow these steps:

  1. Clone the repository.
  2. Install the application using the command yarn install.
  3. Run the application in development mode using the command yarn start.
  4. For production mode, use the command yarn build to build and start the application.
  5. Optional commands for development purposes include yarn clean to clean build artifacts, yarn test to run integration tests, and yarn quality-check to ensure code standards are met.

For experimenting with the language, follow these steps:

  1. Clone the repository to your local machine.
  2. Install OpenJDK if you intend to compile the language (refer to ANTLR4 documentation for more information).
  3. Create a Python Virtual Environment in the repository.
  4. Switch to the Python Virtual Environment.
  5. Install ANTLR4.
  6. Experiment with the grammar file nlang/lang/nlang.g4 using the ANTLR Lab.
  7. Compile the grammar when ready.
  8. Deactivate the virtual environment when you’re done.

Summary

The Nlang Scripting Language features an intuitive code editor with various helpful functionalities such as autocompletion and real-time error checking. It also provides a real language parser and comprehensive documentation on its website. The installation process involves cloning the repository, installing required software packages, and running the application in either development or production mode. Additionally, developers can experiment with the language by following specific steps outlined in the documentation. The application is licensed under the MIT License.