This project is read-only.
SlangJS is an attempt to port SlangForDotNet compiler created in C# to javascript.

The porting is done using 7 steps as in the former.

Step 1
- - - - - - - - - - - - - - - - - - - - - - - - - -
The Step 1 creates a class hierarchy to model the composition of Expression.


Step 2
- - - - - - - - - - - - - - - - - - - - - - - - - -
The Step 2 starts from where Step 1 left off. In this version of the code , you have got additional classes
for Lexical analysis, Expression Builder besides the AST classes from the Step 1.


Step 3
- - - - - - - - - - - - - - - - - - - - - - - - - -
This Step adds support to Print and PrintLine Statement.


Step 4
- - - - - - - - - - - - - - - - - - - - - - - - - -
This Step adds Variable support ( String , Booleand and Numeric ) and Assignment Statement.


Step 5
- - - - - - - - - - - - - - - - - - - - - - - - - -
All the statements are included under a function main before interpreting.


Step 6
- - - - - - - - - - - - - - - - - - - - - - - - - -
This step adds support to relational operators ( > , < , >=, <=,<>,== ) , Logical Operators ( ! , && , || ) , IF and While Statement.


Step 7
- - - - - - - - - - - - - - - - - - - - - - - - - -
This step adds support to Functions. This makes SLANG mature enough to become a Domain Specific Language.

Last edited Apr 29, 2014 at 1:28 PM by Jayakrishnan2k4, version 2