GithubHelp home page GithubHelp logo

zeroplayerrodent / cavycode Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 55 KB

Code like a Guinea Pig!

Common Lisp 100.00%
esolang esolangs guinea-pig programming-language programming-languages rodents

cavycode's Introduction

CavyCode

Code like a Guinea Pig!

CavyCode is a lightweight programming language with a strong Guinea Pig theme.

Each function and keyword is inspired by actions and objects relating to Guinea Pigs.

CavyCode is both an interpreted and compiled language with the ability to compile to Common Lisp.

Code Examples

Here are some simple snippets of CavyCode code.

For more programs, check out the sample programs directory.

Hello World:

Wheek-string "Hello, World!"

Infinite counter:

Mark-territory 1
Wheek-int Tunnel
Wheek-char 10
Eat-hay 1
Zoomies-to 1

Truth-machine:

Eat-pellet Beg-int
Poop
Mark-territory 1
Wheek-int Tunnel
Popcorn-if 0
  Zoomies-to 1

Computational Class

CavyCode is Turing-Complete due to its ability to simulate any arbitrary Cyclic Tag System.

Check out cyclic-tag.cavy for a CavyCode program that interprets any cyclic tag system defined by the user.

See also: BF-CavyCode, a Brainfuck interpreter written in CavyCode.

Get Started!

You can build/run CavyCode directly from source, or you can download a (possibly outdated) pre-compiled binary from the releases tab.

CavyCode is only confirmed to work with the CLISP Common Lisp implementation. Any other implementation may not work or may have issues running CavyCode.

After starting CavyCode by typing ./cavycode.mem in your terminal, you can interpret a program by typing (cavy-i "filename.cavy"), or you can compile a program by typing (cavy-c "filename.cavy").

Now that you have CavyCode set up, learn to write programs by reading the documentation!

cavycode's People

Contributors

zeroplayerrodent avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.