Skip to content

typesafe/zimpanzee

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Learning Zig by implementing an interpreter for the Monkey language.

Tokens

  • eof
  • comment (string)
  • illegal (char)
  • identifier(string)
  • integer(string)
  • operator (Operator)
  • keyword (Keyword)
  • semicolon
  • dot,
  • lbrace
  • rbrace
  • lparen
  • rparen
  • lbracket
  • rbracket

Keyword

  • let
  • ret
  • if
  • else
  • fn

Operator

  • bang
  • asterisk
  • fslash
  • assign
  • plus
  • minus
  • lt
  • gt
  • eq
  • ne

Nodes

  • statement
    • let
    • return
    • if
  • expression
    • identifier Identifier{ token, name }
    • literal Literal{ token, name }
    • op Op{ token, left, right}

About

Monkey language interpreter in Zig.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages