MiniNob
|
  |
| Joined: 14 May 2013 |
| Total Posts: 822 |
|
|
| 22 Oct 2015 08:39 AM |
Hello I finished creating an interpreter for a new language for scripting on Roblox. It is a structured, stack-based, weak-typed, list-based, functional, and concatenative language. Here are some examples:
1 1 add print
Prints 2 to the console
1 version let version 1 add print
Prints 2 again to the console
(n def (1 n sub fib 2 n sub fib add) (n) 2 n lt if-else) fib defun
Fibonacci
|
|
|
| Report Abuse |
|
|
|
| 22 Oct 2015 08:54 AM |
| Maybe you should publish it.. |
|
|
| Report Abuse |
|
|
yobo89
|
  |
| Joined: 05 Jun 2010 |
| Total Posts: 2341 |
|
| |
|
| |
|
MiniNob
|
  |
| Joined: 14 May 2013 |
| Total Posts: 822 |
|
| |
|
| |
|
|
| 22 Oct 2015 09:39 AM |
| You're just making things overcomplicated. |
|
|
| Report Abuse |
|
|
MiniNob
|
  |
| Joined: 14 May 2013 |
| Total Posts: 822 |
|
|
| 22 Oct 2015 10:59 AM |
Another example code which calculates the sum of all numbers less than and equal to 15:
('n' def (1 'ok' print)(n 1 n sub sum add)n 1 lt if-else) sum defun 15 sum print
>> 120 |
|
|
| Report Abuse |
|
|
eLunate
|
  |
| Joined: 29 Jul 2014 |
| Total Posts: 13268 |
|
| |
|
AgentL3r
|
  |
| Joined: 14 Jan 2013 |
| Total Posts: 1671 |
|
|
| 22 Oct 2015 11:08 AM |
eww
#code for i,v in pairs dont |
|
|
| Report Abuse |
|
|
morash
|
  |
| Joined: 22 May 2010 |
| Total Posts: 5834 |
|
|
| 22 Oct 2015 11:44 AM |
| The first programming language that has to be read right to left. |
|
|
| Report Abuse |
|
|
ELwxy
|
  |
| Joined: 18 Oct 2015 |
| Total Posts: 55 |
|
| |
|
ELwxy
|
  |
| Joined: 18 Oct 2015 |
| Total Posts: 55 |
|
| |
|
ELwxy
|
  |
| Joined: 18 Oct 2015 |
| Total Posts: 55 |
|
| |
|
ELwxy
|
  |
| Joined: 18 Oct 2015 |
| Total Posts: 55 |
|
|
| 22 Oct 2015 12:02 PM |
| Thats what really matters. |
|
|
| Report Abuse |
|
|
ELwxy
|
  |
| Joined: 18 Oct 2015 |
| Total Posts: 55 |
|
| |
|
Argelius
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 4047 |
|
|
| 22 Oct 2015 01:43 PM |
bad syntax is bad
however, if you make a ruby interpreter in rbx.lua you win the internet. |
|
|
| Report Abuse |
|
|
Zaxerion
|
  |
| Joined: 09 Feb 2013 |
| Total Posts: 2304 |
|
| |
|
MiniNob
|
  |
| Joined: 14 May 2013 |
| Total Posts: 822 |
|
|
| 22 Oct 2015 03:49 PM |
Now supports local variables
3 n def (4 n def n print) n print
>> 4 >> 3 |
|
|
| Report Abuse |
|
|
MiniNob
|
  |
| Joined: 14 May 2013 |
| Total Posts: 822 |
|
|
| 22 Oct 2015 03:50 PM |
| typo: 3 n def (4 n def n print) do n print |
|
|
| Report Abuse |
|
|
kools
|
  |
| Joined: 11 Jan 2009 |
| Total Posts: 1659 |
|
|
| 22 Oct 2015 04:05 PM |
| Just stop! This is so disgusting, I am going to be sick. |
|
|
| Report Abuse |
|
|
coolmatt3
|
  |
| Joined: 12 Jul 2010 |
| Total Posts: 778 |
|
|
| 22 Oct 2015 04:27 PM |
Lol this is gibberish XD makes no sense sound like you just typed anything Let me make a new language to
add to add right print 2-- prints "I hate this new language" XD thats exacly how you "created" your "language" XD |
|
|
| Report Abuse |
|
|
MiniNob
|
  |
| Joined: 14 May 2013 |
| Total Posts: 822 |
|
|
| 22 Oct 2015 04:32 PM |
| cool, if you are unsure of how my language functions, look up languages like "PostScript", or "Forth"; they are similar to the one I'm making. |
|
|
| Report Abuse |
|
|
Klink45
|
  |
| Joined: 06 Jun 2011 |
| Total Posts: 26054 |
|
|
| 22 Oct 2015 04:44 PM |
You really do need to make that easier on the eyes. Instead of saying "'I like pie.' print" try "print 'I like pie.'"
u sicko! |
|
|
| Report Abuse |
|
|
|
| 22 Oct 2015 04:45 PM |
| The language is basically backwards |
|
|
| Report Abuse |
|
|