Thanks to visit codestin.com
Credit goes to github.com

Skip to content
/ Snek Public

A minimal statically typed, interpreted language with Python-like syntax, built in C as a learning tool.

License

Notifications You must be signed in to change notification settings

anthonyb8/Snek

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snek 🐍

Snek is a statically typed, interpreted programming language with Python/Rust inspired syntax, implemented entirely in C.

Purpose

Snek is a learning project aimed at exploring:

  • Language design
  • Writing interpreters in C
  • Implementing a type system
  • Building syntax and semantics from scratch

Features

  • Static typing for variables and functions
  • Pythonic syntax: indentation, no semicolons
  • Rust keywords: let/ const/fn
  • Expression-based evaluation
  • Hand-written parser and interpreter in C
  • Designed for simplicity, not full general-purpose use

Example Snek Code

fn main() -> int:
    let x: int = 10
    let y: int = x + 2

    x +=1
    return y

About

A minimal statically typed, interpreted language with Python-like syntax, built in C as a learning tool.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published