Top 1K Features Creators Events Podcasts Books Extensions Interviews Blog Explorer CSV

Shrubbery Notation

< >

Shrubbery Notation is a data notation created in 2023 by Matthew Flatt .

#3122on PLDB 2Years Old
Homepage

Shrubbery notation is a set of text-level conventions that build toward a full programming language, such as Rhombus. The notation is line- and indentation-sensitive, and it is intended to partially group input, but leave further parsing to another layer, especially enforestation. The parsed form of a shrubbery imposes grouping to ensure that further parsing is consistent with the shrubbery鈥檚 lines and indentation.


Example from the web:
block: println("group within block") println("another group within block") if is_rotten(apple) | get_another() | take_bite() be_happy() match x | 0: let zero = x x + zero | n: n + 1 cond | // check the weather is_raining(): take_umbrella() | // check the destination going_to_beach(): wear_sunscreen() take_umbrella() | // assume a hat is enough ~else: wear_hat()

- Build the next great programming language Add Add Prompt Issues About Search Keywords Livestreams Labs Resources Acknowledgements

Built with Scroll v175.2.1