Skip to content

A very simple toy language using python for learning purposes

License

Notifications You must be signed in to change notification settings

juniperfdel/toy_programming_language

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Juniper's Silly Little Language (JSL)

I wanted to learn about programming languages, so I created a very simple toy language using python which tokenizes some text, turns the list of tokens into an AST, then evaluates it. The code is written to be a bit verbose in places for clarity’s sake. It also has been minimally tested.

Language features:

  • Three whole types! Numbers, Strings, and Booleans!
  • Lists!
  • Functions!
  • Operator Overriding!
  • Set and Get Variables!
  • If and Else!
  • Math!
  • True and False!
  • Printing!
  • While Loops!
  • Classes!
  • Importing!

Files:

  • tokenizer.py - The tokenizer code
  • ast_parser.py - The parser/AST code
  • lang_value.py - The values/types code
  • lang.py - The evaluator and code which runs the code
  • test_code/* - The test codes

About

A very simple toy language using python for learning purposes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages