Giter Club home page Giter Club logo

chirp's Introduction

build status

chirp

chirp stands for chirping Interpreter for Rockstar programming. It is an interpreter written in C using flex and yacc for rockstar language. Checkout the wiki for the tutorial
Try it out online


Compiling

Use the makefile to compile the source

make clean
make

Usage

To the run the interpreter

./chirp

To the run the interpreter with filename

./chirp filename

Screenshot

Screenshot

chirp's People

Contributors

atlas48 avatar harohawayu avatar meffie avatar palfrey avatar ricardovfreixo avatar suloch avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

chirp's Issues

example from the website doesn't work as expected, invalid characters.

There is an example rockstar script on the website https://codewithrockstar.com/

That goes like this:

Midnight takes your heart and your soul
While your heart is as high as your soul
Put your heart without your soul into your heart

Give back your heart


Desire is a lovestruck ladykiller
My world is nothing 
Fire is ice
Hate is water
Until my world is Desire,
Build my world up
If Midnight taking my world, Fire is nothing and Midnight taking my world, Hate is nothing
Shout "FizzBuzz!"
Take it to the top

If Midnight taking my world, Fire is nothing
Shout "Fizz!"
Take it to the top

If Midnight taking my world, Hate is nothing
Say "Buzz!"
Take it to the top

Whisper my world

which produces this output:

\m/
syntax error on line 13 at ,
invalid character on line 13 at ,
invalid character on line 13 at ,
fish: Job 2, './chirp example.rock' terminated by signal SIGSEGV (Address boundary error)

upon removing the "," it produces this:

\m/
syntax error on line 15 at Fire
invalid character on line 15 at Fire
invalid character on line 15 at is
invalid character on line 15 at is
invalid character on line 15 at nothing
invalid character on line 15 at and
invalid character on line 15 at taking
invalid character on line 15 at taking
invalid character on line 15 at Hate
FizzBuzz!
not valid statement
syntax error on line 19 at Fire
invalid character on line 19 at Fire
invalid character on line 19 at is
invalid character on line 19 at is
invalid character on line 19 at nothing
Fizz!
not valid statement
syntax error on line 23 at Hate
invalid character on line 23 at Hate
invalid character on line 23 at is
invalid character on line 23 at is
invalid character on line 23 at nothing
Buzz!
not valid statement
Segmentation fault (core dumped)

and I can't make a rhyme on why it would treat regular words or regular characters as invalid?

The examples included in the example folder seem to work fine though.

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.