https://github.com/jasonjmcghee/_earlylanguage
simple scripting language written in python (in very early development)
https://github.com/jasonjmcghee/_earlylanguage
Last synced: 4 months ago
JSON representation
simple scripting language written in python (in very early development)
- Host: GitHub
- URL: https://github.com/jasonjmcghee/_earlylanguage
- Owner: jasonjmcghee
- Created: 2013-08-19T07:42:48.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2013-08-21T19:30:02.000Z (almost 12 years ago)
- Last Synced: 2025-01-11T17:21:27.518Z (5 months ago)
- Language: Python
- Homepage:
- Size: 133 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Madison
A simple scripting language built onto python.
Run with:
$ python parse.pyExamples:
madison> let;five;5
five means 5
madison> five
5
madison> let;three;3
three means 3
madison> do;print(five*three);4
15
15
15
15
madison> let;three;5
You told me "three" meant 3 - did you lie?
madison> three
3
madison> let;7;1
"7" is not a sequence of letters!Above examples in one command:
madison> let;three;3;;let;three;3;;do;print(five*three);4;;let;three;5;;three;;let;7;1
five means 5
5
three means 3
15
15
15
15
You told me "three" meant 3 - did you lie?
3
"7" is not a sequence of letters!Lists work as well:
madison> let;first;list([1, 2, 3])
first means [1, 2, 3]
madison> let;second;list([4, 5, 6])
second means [4, 5, 6]
madison> let;third;list([7, 8, 9])
third means [7, 8, 9]
madison> let;threeByThree;list([first, second, third])
threeByThree means [[1, 2, 3], [4, 5, 6], [7, 8, 9]]madison> let;firstS;list(["a", "b", "c"])
firstS means ["a", "b", "c"]
madison> let;secondS;list(["d", "e", "f"])
secondS means ["d", "e", "f"]
madison> let;thirdS;list([["g", "h", "i"])
thirdS means ["g", "h", "i"]
madison> let;threeByThreeS;list([firstS, secondS, thirdS])
threeByThreeS means [["a", "b", "c"], ["d", "e", "f"], ["g", "h", "i"]]