GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - HarryMills/wagg: C-like Doggo language interpreter written in Go/Python 🐕

BranchesTags
Open more actions menu

Latest commit

 

History

24 Commits
24 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
GoWagg
GoWagg
 
 
PyWagg
PyWagg
 
 
assets
assets
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 

Repository files navigation

Wagg Logo


Wagg programming language interpreter tippy tapped in Go/Python

Features

  • C-like syntax in Doggo Language!
  • Variable bindings (Boops)
  • Integers (Puppers) and Booleans (Bois)
  • Arithmetic expressions
  • Built-in functions (Floofs)
  • First-class and higher-order floofs
  • Closures
  • A string (Woofer) data structure
  • An array (Doggo) data structure
  • A hash (Yapper) data structure

What does Wagg look like?

Binding Values to Names:

boop age = 1; 
boop name = "Wagg"; 
boop result = 10 * (20 / 2);  

Doggo support:

boop myDoggo = [1, 2, 3, 4, 5];

Yapper support:

boop lucky = {"name": "Lucky", "age": 2};

Accessing elements in Doggos and Yappers are done with index expressions:

myDoggo[0]      // => 1
lucky["name"]   // => "Lucky"

Boop can also be used to bind floofs to names:

boop add = floof(a, b) {bork a + b; };

Calling the floof:

add(1, 2);

More complex floof:

boop fibonacci = floof(x) {
	mlem (x == 0) {
		bork 0;
	} blep {
		mlem (x == 1) {
			bork 1;
		} blep {
			fibonacci(x - 1) + fibonacci(x - 2);
		}
	}
};

About

C-like Doggo language interpreter written in Go/Python 🐕

Topics

doggogolanginterpreterlanguagepython

Resources

Readme
MIT license
Activity

Stars

1 star

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.