aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: 26a1120785d9297045479b0c4dba5f701734a782 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# neb examples

Some examples of neb code, using well known and/or widely available problems.

**All examples should be runnable with the latest neb-python interpreter.**
As the compiler (neb-d) matures, it should be able to run more and more of
these examples.

The purpose of this repo is two-fold:
1. Provide working examples to anyone (including my future self) who is
interested in writing *scare-quotes* ideomatic neb.
2. By working through examples, locate the rough edges of the language
(where do things not work/look-or-feel wrong), and use that to *refine* the
language (both the core syntax and available functions in a standard lib).

## is this really ideomatic neb?

I mean, I don't have a PEP20/PEP8-esque reference document, but this is probably
as close as things get to ideomatic at this point. Also, as the language 
changes for whatever reason(s), so too will some of the styles (both to 
accomodate breaking changes, and to take advantage of new formats). I also
try to make comments around bits of code I find particularly clunky, so those
areas are probably the most likely to change.

## dude, your code is bad...

I'm sure you're right! I'd love to hear any specific feedback on either the
language or the code written in it. I am not the World's Best Coder by any
stretch, and so am very open to learning new things and rectifying my mistakes!

## key to examples
 - `aoc`: [Advent of Code](https://adventofcode.com)
 - `p99`: [Ninety-Nine Lisp Problems](https://www.ic.unicamp.br/~meidanis/courses/mc336/problemas-lisp/L-99_Ninety-Nine_Lisp_Problems.html)
 - `rosetta`: [Rosetta Code](https://rosettacode.org/wiki/Rosetta_Code) (Note: the names of the problems don't line up well)