Skip to content

CCHS-Coding-Club-Open-Source/Elvish

Repository files navigation

Elvish

Syntax

General

Every line ends in a | character

Methods

Denoted by a @ character
Display text: @show("text")|
Get text: @get("text")|

Variables

Not preceded by any non-alphabetic characters
example = "text"|

Conditionals

If: ?
Else if: ?
Else: >

Each line in a conditional is preceded by a / character
To nest conditionals, multiple slashes are used

? example = "yes"
  / answer = "this"|
  / @show(answer)|
  ? example2 = "yes"
    // answer = "hello"|
    // @show(answer2)|
  / new_answer = @get(what is your answer)|
?> example = "no"
  / answer = "that"|
>
  / @show("false")|
  / new_answer = @get(what now?)|

Comments

All comments are enclosed in parentheses and may not be on the same line as other code
(this is an example)

Each line in a block comment is preceded by a / character

(
  / this is an example
  / of a block comment
)

Team

Anthony Beckwith Andrew Cohen Sophia Hubscher
github.com/abeckwith github.com/Ep1cC0d3r github.com/sophia-hubscher
David Peppercorn John Scheffel Griffith Wood
github.com/dpeppercorn21 github.com/jscheffel821 github.com/gwood19

About

Interpreter for the programming language 'Elvish'

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages