BSL:BFW Scripting Language: Difference between revisions

From OniGalore
Jump to navigation Jump to search
Line 11: Line 11:
|+''OSL separators''
|+''OSL separators''
|-
|-
| align="center" width="100px" | [[OSL:separators|<tt>;</tt>]]
| align="center" width="100px" | [[OSL:statements|<tt>;</tt>]]
| align="center" width="100px" | [[OSL:arguments|<tt>,</tt>]]
| align="center" width="100px" | [[OSL:functions|<tt>,</tt>]]
| align="center" width="100px" | [[OSL:Oni Scripting Language/comments|<tt>#</tt>]]
| align="center" width="100px" | [[OSL:comments|<tt>#</tt>]]
| align="center" width="100px" | [[OSL:strings|<tt>"</tt>]]
| align="center" width="100px" | [[OSL:data|<tt>"</tt>]]
|-
|-
| align="center" width="100px" | [[OSL:compound statements|<tt>{</tt>]]
| align="center" width="100px" | [[OSL:statements|<tt>{</tt>]]
| align="center" width="100px" | [[OSL:compound statements|<tt>}</tt>]]
| align="center" width="100px" | [[OSL:statements|<tt>}</tt>]]
| align="center" width="100px" | [[OSL:brackets|<tt>(</tt>]]
| align="center" width="100px" | [[OSL:functions|<tt>(</tt>]]
| align="center" width="100px" | [[OSL:brackets|<tt>)</tt>]]
| align="center" width="100px" | [[OSL:functions|<tt>)</tt>]]
|-
|-
| align="center" colspan="4" style="border-top:1px solid red; border-right:1px solid red; border-bottom:2px solid red; border-left:1px solid red;" |
| align="center" colspan="4" style="border-top:1px solid red; border-right:1px solid red; border-bottom:2px solid red; border-left:1px solid red;" |
Line 29: Line 29:
|+''OSL operators''
|+''OSL operators''
|-
|-
| align="center" width="100px" | [[OSL:arithmetical operators|<tt>+</tt>]]
| align="center" width="100px" | [[OSL:operators|<tt>+</tt>]]
| align="center" width="100px" | [[OSL:arithmetical operators|<tt>-</tt>]]
| align="center" width="100px" | [[OSL:operators|<tt>-</tt>]]
| align="center" width="100px" | [[OSL:assignments|<tt>=</tt>]]
| align="center" width="100px" | [[OSL:variables|<tt>=</tt>]]
| align="center" width="100px" | [[OSL:logical operators|<tt>!</tt>]]
| align="center" width="100px" | [[OSL:operators|<tt>!</tt>]]
|-
|-
| align="center" width="100px" | [[OSL:logical operators|<tt>and</tt>]]
| align="center" width="100px" | [[OSL:operators|<tt>and</tt>]]
| align="center" width="100px" | [[OSL:logical operators|<tt>or</tt>]]
| align="center" width="100px" | [[OSL:operators|<tt>or</tt>]]
| align="center" width="100px" | [[OSL:relational operators|<tt>eq</tt>]]
| align="center" width="100px" | [[OSL:operators|<tt>eq</tt>]]
| align="center" width="100px" | [[OSL:relational operators|<tt>ne</tt>]]
| align="center" width="100px" | [[OSL:operators|<tt>ne</tt>]]
|-
|-
| align="center" width="100px" | [[OSL:relational operators|<tt><</tt>]]
| align="center" width="100px" | [[OSL:operators|<tt><</tt>]]
| align="center" width="100px" | [[OSL:relational operators|<tt>></tt>]]
| align="center" width="100px" | [[OSL:operators|<tt>></tt>]]
| align="center" width="100px" | [[OSL:relational operators|<tt><=</tt>]]
| align="center" width="100px" | [[OSL:operators|<tt><=</tt>]]
| align="center" width="100px" | [[OSL:relational operators|<tt>>=</tt>]]
| align="center" width="100px" | [[OSL:operators|<tt>>=</tt>]]
|-
|-
| align="center" colspan="4" style="border-top:1px solid red; border-right:1px solid red; border-bottom:2px solid red; border-left:1px solid red;" |
| align="center" colspan="4" style="border-top:1px solid red; border-right:1px solid red; border-bottom:2px solid red; border-left:1px solid red;" |
Line 52: Line 52:
|+''OSL keywords''
|+''OSL keywords''
|-
|-
| align="center" width="75px" | [[OSL:keyword schedule|<tt>at</tt>]]
| align="center" width="75px" | [[OSL:keywords|<tt>at</tt>]]
| align="center" width="75px" | [[OSL:data types|<tt>float</tt>]]
| align="center" width="75px" | [[OSL:data|<tt>float</tt>]]
| align="center" width="75px" | [[OSL:conditional statements|<tt>if</tt>]]
| align="center" width="75px" | [[OSL:statements|<tt>if</tt>]]
| align="center" width="75px" | [[OSL:keyword repeat|<tt>repeat</tt>]]
| align="center" width="75px" | [[OSL:keywords|<tt>repeat</tt>]]
| align="center" width="75px" | [[OSL:data types|<tt>string</tt>]]
| align="center" width="75px" | [[OSL:data|<tt>string</tt>]]
|-
|-
| align="center" width="75px" | [[OSL:data types|<tt>bool</tt>]]
| align="center" width="75px" | [[OSL:data|<tt>bool</tt>]]
| align="center" width="75px" | [[OSL:keyword for|<tt>for</tt>]]
| align="center" width="75px" | [[OSL:keywords|<tt>for</tt>]]
| align="center" width="75px" | [[OSL:data types|<tt>int</tt>]]
| align="center" width="75px" | [[OSL:data|<tt>int</tt>]]
| align="center" width="75px" | [[OSL:keyword return|<tt>return</tt>]]
| align="center" width="75px" | [[OSL:functions|<tt>return</tt>]]
| align="center" width="75px" | [[OSL:keyword using|<tt>using</tt>]]
| align="center" width="75px" | [[OSL:keywords|<tt>using</tt>]]
|-
|-
| align="center" width="75px" | [[OSL:conditional statements|<tt>else</tt>]]
| align="center" width="75px" | [[OSL:statements|<tt>else</tt>]]
| align="center" width="75px" | [[OSL:keyword fork|<tt>fork</tt>]]
| align="center" width="75px" | [[OSL:functions|<tt>fork</tt>]]
| align="center" width="75px" | [[OSL:keyword iterate|<tt>iterate</tt>]]
| align="center" width="75px" | [[OSL:keywords|<tt>iterate</tt>]]
| align="center" width="75px" | [[OSL:keyword schedule|<tt>schedule</tt>]]
| align="center" width="75px" | [[OSL:keywords|<tt>schedule</tt>]]
| align="center" width="75px" | [[OSL:variable declaration|<tt>var</tt>]]
| align="center" width="75px" | [[OSL:variables|<tt>var</tt>]]
|-
|-
| align="center" width="75px" | [[OSL:keyword every|<tt>every</tt>]]
| align="center" width="75px" | [[OSL:keywords|<tt>every</tt>]]
| align="center" width="75px" | [[OSL:function declaration|<tt>func</tt>]]
| align="center" width="75px" | [[OSL:functions|<tt>func</tt>]]
| align="center" width="75px" | [[OSL:keyword over|<tt>over</tt>]]
| align="center" width="75px" | [[OSL:keywords|<tt>over</tt>]]
| align="center" width="75px" | [[OSL:keyword sleep|<tt>sleep</tt>]]
| align="center" width="75px" | [[OSL:keywords|<tt>sleep</tt>]]
| align="center" width="75px" | [[OSL:data types|<tt>void</tt>]]
| align="center" width="75px" | [[OSL:data|<tt>void</tt>]]
|-
|-
| align="center" colspan="5" style="border-top:1px solid red; border-right:1px solid red; border-bottom:2px solid red; border-left:1px solid red;" |
| align="center" colspan="5" style="border-top:1px solid red; border-right:1px solid red; border-bottom:2px solid red; border-left:1px solid red;" |

Revision as of 20:40, 13 November 2005

Oni Scripting Language (or OSL)

is what Oni scripts are written in.

Please excuse the mess.

OSL syntax overview table
OSL separators
; , # "
{ } ( )

Click on a separator for details

OSL operators
+ - = !
and or eq ne
< > <= >=

Click on an operator for details

OSL keywords
at float if repeat string
bool for int return using
else fork iterate schedule var
every func over sleep void

Click on a keyword for details