Skip to content

jacobabahn/sLox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sLox

This project showcases a lox interpreter written in Scala. It was created by following the java implementation from Crafting Interpreters.

Implementation

This implementation goes up to chapter 10.2 in the crafting interpreters book and includes the following modifications:

Const Keyword

The const keyword I implemented works similarly to const in JavaScript or val in typescript. If a variable is declared using the const keyword, it cannot be reassigned.

Input

Input is a native function that works by calling input()

Random

Random is a native function that works by calling random(int), where int is the upper bound of the random value being generated.

About

A lox interpreter written in Scala

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages