Skip to content

kingstabyou/Interpreter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Interpreter

Lexer written from scratch which is capable of interpreting instructions such as first order function calls. Parses, executes custom language instructions in an in-order depth first traversal manner of parse tree. Lexical-scoping based execution environments incorporated for performing binary operations.

Host repo on a LiveServer and access index.html through any specified browser. On the below rendered page add the ParseTree program to be interpreted

interpreter

Example of a language instruction :-

(12%7)*(3+2)

{
    "type": "*",
    "left": {
        "type": "%",
        "left": {
            "type": "number",
            "value": 12
        },
        "right": {
            "type": "number",
            "value": 7
        }
    },
    "right": {
        "type": "+",
        "left": {
            "type": "number",
            "value": 3
        },
        "right": {
            "type": "number",
            "value": 2
        }
    }
}

More of the same examples found here

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published