Skip to content

Point* - An interpreted turing complete programming language developed using Java.

Notifications You must be signed in to change notification settings

prabhav-pandya/Point-Star

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Point*

Point*: An interpreted turing-complete programming language built using Java.

Users can either write code directly in the terminal or pass a text file address as an argument while running the main file. The language supports basic functionalities like variable declaration, print, loops(for & while) and functions.
The code goes through the following steps:

  1. Lexical Analysis
  2. Parsing
  3. AST Generation
  4. Evaluation


Here's a basic Point* program code:

def fib(n) {
  if (n <= 1) return n;
  return fib(n - 2) + fib(n - 1);
}

var a = 1;
var b = a<2;

if(b){
  print "Condition satisfied";
  for (var i = 0; i < 20; i = i + 1) {
    print fib(i);
  }
}

Reference taken from: Crafting Interpreters

About

Point* - An interpreted turing complete programming language developed using Java.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages