Skip to content

JustFady/OurPL-Lang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OurPL-Lang

Small language I built from scratch — lexer, parser, and interpreter in Java.

dependencies

run

mvn exec:java -Dexec.args="examples/example1.opl"

if something looks off, clean build first:

mvn clean compile exec:java -Dexec.args="examples/example1.opl"

test

mvn test

what's in it

  • variables, strings, numbers, nil
  • arithmetic, comparison, and logical operators
  • short-circuit evaluation (and, or)
  • if / else, while, for
  • block scoping
  • print
  • functions and closures
  • return statements

what's next

  • classes and structs
  • arrays
  • string interpolation

About

A lightweight, tree-walk interpreter and custom programming language built from scratch in Java, featuring closures, lexical scoping, and a hand-written recursive descent parser.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages