|
| 03 Mar 2015 01:28 AM |
For project to get into for the lua division group I have to make a language so it look so far like:
@varname es value it set variable varname equal to value
que ( @varname, 4) if varname is 4 the next line will run or it skip
noque is like que and spaces optionle every where here is patterns i am use for some:
@varname[1 or more space]es[1 ore more space]value ^@(%w+)%s+es%s*(@*%w+)$
so far i am only add: define varible, not/compare (var to var or var to val or val to var or val to val (@ mean variable)) add/minus/times/division is like: + (@var, var/val) so require var for first peremeter. and i have output it prints |
|
|
| Report Abuse |
|
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
| |
|
|
| 03 Mar 2015 01:43 AM |
| yes that is the one i am almost done x) |
|
|
| Report Abuse |
|
|
|
| 03 Mar 2015 02:06 AM |
I am done! it very simple but cool, only has declare, compare, not compare (~=), add minus times division and print
So x = 5 y = 10 x = x + y print(x)
Work like: @x es 5 @y es 10 +(@x, @y) hablar(@x)
So far it work :) |
|
|
| Report Abuse |
|
|
|
| 03 Mar 2015 02:09 AM |
It can compare value but I did not added: 'Exponential Declaration(^, 5^2 = 25) Unary Negation(-, 5 = 5, -5 = -5) Modulus(%, 100%5 = 20)'
yet it is easy though to add |
|
|
| Report Abuse |
|
|
|
| 03 Mar 2015 02:24 AM |
okay done i also add comments use "#"
# comment: x = 5 @x es 5 # another comment y = 10 @y es 10 # x = x + (y ^ 2) (x = 5 + (100) = 105) @z es @y ^(@z, 2) +(@x, @z) # print x hablar(@x)
printed 105
I use variable z because i don't want to change y :) |
|
|
| Report Abuse |
|
|
|
| 03 Mar 2015 09:51 PM |
i finished guys it is here; http://www.roblox.com/ClickAltF4s-Place-place?id=124860265
i am sorry about ugly G.U.I. |
|
|
| Report Abuse |
|
|
| |
|
|
| 04 Mar 2015 12:11 AM |
| it was concept using string pattern, if you do not like i am sorry but is not meant to please you, i use only string pattern something i never see you ever do on her |
|
|
| Report Abuse |
|
|