https://github.com/sauldoescode/moo
moo-lang.. smol, simple
https://github.com/sauldoescode/moo
Last synced: 9 days ago
JSON representation
moo-lang.. smol, simple
- Host: GitHub
- URL: https://github.com/sauldoescode/moo
- Owner: SaulDoesCode
- License: gpl-3.0
- Created: 2025-02-25T20:48:47.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-02-25T21:21:15.000Z (12 months ago)
- Last Synced: 2025-02-25T21:34:30.454Z (12 months ago)
- Language: V
- Size: 0 Bytes
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# moo
moo-lang.. smol, simple
- small executable (under 3mb so far)
- esolang feel
- extensible
- ideosyncratic
# spec so far
```moo
@
:
| comments between these up right characters |
str moo "uwu uwu" | str is a function and moo is its first argument and the string is its second (this is just a comment) |
` ~moo `
| see? ^- `these ticks will print out what's between them and template/replace/read from the scope with ~` |
my_struct:
prop 5.55
msg "let me, love you, all the... way through"
subspace: x 3 y 32 z 0 moniker "warra-machine", | the : delimits sub-spaces and is closed by a comma, commas are otherwise not wanted |
;
```

```moo
`hello wurld`
str moo "yes"
`is there moo? ~moo`
box 50 50 40 40 #cccfff
= yes ~moo
? txt "yes yes: control flow" 270 300 24 24 #e9801f
= no no1
! txt "yes no no1: don't match" 260 320 24 24 #e9801f
`yee`
box 150 150 140 70 #da2121
str index "hello my index"
write "./index.txt" ~index
read "./index.txt" index
`here's the score: index.txt reads ~index`
```

install vlang, gcc or clang, as well as the relevant dependencies vlang expects
v -prod moo.v
./moo