Welcome, Guest

Author Topic: Programming  (Read 1968 times)

deoxy99

  • Universe Sandbox 1 Beta Team
  • *****
  • Posts: 872
  • ✨ the name's verb ✨
Programming
« on: October 03, 2010, 04:15:37 PM »
When I figure out how to make programming languages when I am older, this is one script I would like to make.

!To script in ParseScript, you use methods and variables to operate programs.!
!Strings are wrapped in "?"!

?Hello World!?

!Variables are set with SetVar[]!
!Please note that if the variable is global, in order to use it, you have to put the variable name in at signs.!

SetVar[name[var]; value[?var?]; global[True]]

!Methods are in this format: MethodName[arguments]!

Print[value[@var@]]

!Defining Methods!
!Please note that custom methods are not colored.!

MethodDefine[name[MyMethod]; methodscript[
Print[value[@var@ . ? ? . @var@]]
]
]


MyMethod[]

!Another way to comment is to make
line breaks
in the comment
to comment several blocks.!


!Hashes!

SetVar[name[myvar]; value[{
?key? >> ?var?
}]; global[True]]


Print[value[@myvar@[?key?]]]

You can talk about anything programming-related.
« Last Edit: October 03, 2010, 04:19:54 PM by deoxy99 »

atomic7732

  • Global Moderator
  • *****
  • Posts: 3849
  • caught in the river turning blue
    • Paladin of Storms
Re: Programming
« Reply #1 on: October 03, 2010, 05:12:40 PM »
Programming
You can't do much with it.

Darvince

  • *****
  • Posts: 1842
  • 差不多
Re: Programming
« Reply #2 on: October 03, 2010, 05:19:24 PM »
can't

make programming languages easily.

atomic7732

  • Global Moderator
  • *****
  • Posts: 3849
  • caught in the river turning blue
    • Paladin of Storms
Re: Programming
« Reply #3 on: October 03, 2010, 07:00:19 PM »