Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

A complex language with high level programming and moderate syntax.

License

NotificationsYou must be signed in to change notification settings

kokonut27/zsq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

code sizeversion

z^2

a complex language with high level programming and moderate syntax.

Get started

Usage

  1. Clone this repository:
$ git clone https://github.com/kokonut27/zsq.git
  1. Add an alias

macOS/Linux

If you use macOS Catalina or newer, you will use Z-Shell so you will have a.zshrc file in your home folder. Most distributions of Linux use Bash by default, so you will have a.bashrc file in your home folder.

Of course, it is possible to change your shell so you should check before running the command.

Run the following command. If you use Bash replace.zshrc with.bashrc:

echo"alias zsq='python -B zsq'">> .zshrc

Windows

You may want to installWindows Subsystem for Linux

echo"alias zsq='python -B zsq'">> .bashrc

Shell

$alias zsq="python -B zsq"

  1. Run z^2

Create a file namedindex.zsq, which will contain all of your code. Then enter the following in the shell:

$ zsq index.zsq

Then you're all done!

Example program

// Defines the Fibonacci functionfunctionFibonacci(num){// Creates an arg 'num'whatifnum<=1{return(num)}else{return(Fibonacci(num-1)+Fibonacci(num-2))}varask=prompt("amount of fibonacci sequence? ")forfib_seqinspan(ask){print(Fibonacci(fib_seq))}

This is a current work in progress as of right now.VisitEXAMPLES.md for more examples.

Contributing

Feel free to contribute byforking the repo, and leaving a pull request!

About

A complex language with high level programming and moderate syntax.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp