Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stephenwakely/ongle
Ongle is the starts of a very basic scripting language for the CLR. Created for my amusement!
https://github.com/stephenwakely/ongle
Last synced: about 2 months ago
JSON representation
Ongle is the starts of a very basic scripting language for the CLR. Created for my amusement!
- Host: GitHub
- URL: https://github.com/stephenwakely/ongle
- Owner: StephenWakely
- Created: 2010-11-11T10:57:53.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2010-11-26T20:03:31.000Z (about 14 years ago)
- Last Synced: 2024-04-12T16:08:00.553Z (10 months ago)
- Language: C#
- Homepage:
- Size: 471 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
Ongle is the starts of a very basic scripting language for the CLR.
Created for my amusement!
Basic features of Ongle are :
- Ongle is a dynamic language.
- There are no methods, just closures.
- Closures cannot return values. Thus all code must pass on their values to closures that are passed in. This encourges development in a Continuation Passing Style. There are many interesting features of this style, most notably the ability to make all calls asynchronous.There is hardly any syntax.
To assign a variable :
x = 3
y = 'hello world'To output to the console :
print 'hello world' + newline
To create a closure :
printstuff = {
print 'yay' + newline
}To call a closure :
x (parameter1, parameter2)
Currently a closures parameters are passed in the '$' variable. They are accessed like :
dostuff = {
print $[0]
print $[1]
}