Nymph is a programming language created in 2017 by Brandon Barber.
#958on PLDB | 7Years Old |
git clone https://github.com/maelswarm/nymph
🧚 A slightly different version of C.
#include <stdio.h>
#include <stdlib.h>
class Mammal {
+ int population = 0; // Class Variable (+)
- int height = 0, weight = 100; // Object Variable (-)
+ Mammal *init(int height, int weight) { // Class Method (+) Constructor
this->height = height;
this->weight = weight;
Mammal->population++;
return this;
}
- void print() { // Object Method (-)
printf("print instance properties...\n");
}
}
Feature | Supported | Example | Token |
---|---|---|---|
Print() Debugging | ✓ | printf | |
Comments | ✓ | // A comment | |
Line Comments | ✓ | // A comment | // |
Semantic Indentation | X |