Skip to content

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

Description

@BMaxV

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions