Skip to content

threadedstream/miniscala

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

miniscala

miniscala programming language

Voici un exemple of the program written in miniscala

  
  def fac(x: Int): Int{
      if (x == 1) {
          return 1
      }
      return x * fac(x - 1)
  }


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

  print(fac(fib(5))) // outputs 40320

For more examples, refer to source files located under the "sources" folder.

Warning

Currently, tree-walk interpreter doesn't work

About

miniscala programming language

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages