Skip to content

budgielang/NBudgie

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NBudgie - Natural Budgie 🦜

Greenkeeper badge Build Status NPM version

A natural language layer on top of Budgie.

General Language Syntax (Budgie) is a unified syntax that compiles into a number of OOP languages. NBudgie converts natural language to Budgie syntax, which can then be converted into real code.

NBudgie Budgie
Comment that this is an awesome project comment line : This is an awesome project
Gimme a for loop for i from 0 to 10 pls for numbers start : i number 0 10
Let's start off with a joyous class named Painting
First we'll give it a happy little private string named trees
Then we add to that with a fun private member name, also of type int
You know what, I think that's all we need. Let's end the class.
class start : Painting
member variable declare : private trees string
member variable declare : private name string
class end

Usage

const nbudgie = require("nbudgie");

const nbudgieParser = nbudgie.createParser();

// "comment line : Hello!"
nbudgieParser.parseLines([
    `note: Hello!`
]);

Development

See docs/Development.md.