Skip to content

Banyc/kaleidoscope

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kaleidoscope

  • e.g.

    # Compute the x'th fibonacci number.
    def fib(x)
      if x < 3 then
        1
      else
        fib(x-1)+fib(x-2)
    
    # This expression will compute the 40th number.
    fib(40)
  • e.g. import external functions

    extern sin(arg);
    extern cos(arg);
    extern atan2(arg1 arg2);
    
    atan2(sin(.4), cos(42))
  • constraints:

    • only datatype: double
    • no type declarations

Dev environment

  • llvm@14
  • Set environment variable LLVM_SYS_140_PREFIX to the path of llvm@14
    • Also set it at rust-analyzer.server.extraEnv and rust-analyzer.runnableEnv in settings.json if you use vscode

References

About

A language with LLVM. Status: WIP.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages