Skip to content

Bytecode interpreted language inspired by Lua, Gleam, and the "Crafting Interpreters" book. It is designed to resemble a statically typed Lua and serve as a scripting language for handling small tasks.

Gabriel-Spinola/poke-lang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Poke Lang

poke-lang is a bytecode interpreted language inspired by Lua, Gleam, and the "Crafting Interpreters" book. It is designed to resemble a statically typed Lua and serve as a scripting language for handling small tasks.

References

Syntax

function sum(int a, int b) -> int
  if a >= 2 then
    return b
  end

  return a + b
end

mut int a = 2
-- 2
print a

-- function mutate(mut int a)    |    also valid
function mutate(mut int a) -> void
  a = 5 + 6
end

mutate a

-- 11
print a

The project is designed to be used for interpreting bytecode and scripting small tasks. More details on usage and features can be found in the codebase.

About

Bytecode interpreted language inspired by Lua, Gleam, and the "Crafting Interpreters" book. It is designed to resemble a statically typed Lua and serve as a scripting language for handling small tasks.

Resources

Stars

Watchers

Forks

Releases

No releases published