Skip to content

Latest commit

 

History

History
69 lines (43 loc) · 1.89 KB

README.md

File metadata and controls

69 lines (43 loc) · 1.89 KB

Introduction

Jacala is a simple programming language similar to other modern languages. It is developed and encapsulated in Scala. It supports following features:

  • Arithmetic, logic, and declarations, typed in single line or blocks
  • Execution of loops, lambda expressions, and recursive functions
  • Variable assignment, object construction, and dereferencing
  • Eager execution, lazy execution, and dynamic type checking

How to run it

Make sure you have sbt on your machine. If not, you can install it shown as below:

$ brew update
$ brew install scala
$ brew install sbt

Under the Jacala project path, run it using sbt

$ sbt 
$ run

If you typed everything correctly, you would see Running system.console on your terminal

Demo

Declaration with arithmetic

Declaration with arithmetic


Logic

logic screenshot


If Statement

if statement screenshot


Block

block screenshot


Lambda Function

Lambda Function screenshot


Recursive Function

recursive function screenshot


Variable Assignment

var assignment screenshot


While Loops

while loops screenshot