Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

water

                                 ___ _  _ ____
                                  |  |__| |___
                                  |  |  | |___



                                        888                    
                                        888                    
                                        888                    
                 888  888  888  8888b.  888888 .d88b.  888d888
                 888  888  888     "88b 888   d8P  Y8b 888P"   
                 888  888  888 .d888888 888   88888888 888     
                 Y88b 888 d88P 888  888 Y88b. Y8b.     888     
                  "Y8888888P"  "Y888888  "Y888 "Y8888  888     

                  ___________________________________________
                  ===========================================



                    _    ____ _  _ ____ _  _ ____ ____ ____
                    |    |__| |\ | | __ |  | |__| | __ |___
                    |___ |  | | \| |__] |__| |  | |__] |___

Stream-based functional language tailored for ısmo

Thesis

1. Everything's a stream

Streams.

1.1 Everything's a value

No bullshit statements.

1.2 Values are strings

.abc is a string. .12 is also a string. No numbers, no bullshit types.

1.3 Strings are Lists

.1 is (-- -- ++ ++ -- -- -- ++).

1.4 Lists are streams

Streams.

2. Streams are functions

Functions.

1.1 Objects are also functions

//TODO

3. Functions are apps

compose ^upper [scan () concat]
$ ./uppercase.wa <<< "abc"
ABC

Syntax

JavaScript Water Description

| | | Literals "normalString" | @'normalString "$þ€¢íæł cħ@r $ŧrìng" | @'{$þ€¢íæł ¢ħ@r $ŧrìng} No distinction between chars and strings | 'a | 0xabc.123 | 0x'abc.123 123.456 | 0'123.456 0o707.123 | 0o'707.123 0b101 | 0b'101 true/false | ++/-- | [1, 2] | (1 2) | | | Objects obj.normalProp | obj'normalProp obj["$þ€¢íæł cħ@r þrøþ"] | obj'{$þ€¢íæł cħ@r þrøþ} | | | Functions (x, y)=> x(y, y) | \x \y x y y | | | Operations [BACKTICK]x is ${x} and that's fine.[BACKTICK] | @('{x is } x '{ and that's fine.}) 1 + 2 * 3 | 0'(1 + 2 * 3) | Math

About

🍉 Stream-based functional language tailored for ısmo

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors