BSL:Tutorial/Scratch: Difference between revisions

Line 12: Line 12:


Shell-Style:
Shell-Style:
This is compiled much like some System-Shells. It is written in a "one-function-call-a-line" format, and is the easiest to begin with if you have had no coding experience, as the code is neatly displayed line after line. The downside of this it, that once you get into more complex scripts or scripts with many function calls, the file becomes very hard to read and very large.
This is compiled much like some System-Shells. It is written in a "one-function-call-a-line" format, and is the easiest to begin with if you have had no coding experience, as the code is neatly displayed line after line. The downside of this it, that once you get into more complex scripts or scripts with many function calls, the file becomes very hard to read and very large. Also, an great tool, passing information through a command, cannot be done using Shell-Style.


Example: [[Shell-Style]]
Example: [[Shell-Style]]
Line 20: Line 20:


Example: [[C-Style]]
Example: [[C-Style]]
Hybrid Style:
This is a combination between C-Style and Shell-Stlye. It keeps the easy-to-read format of Shell-Style, yet allows you to use the more advanced techniques of C-Style.


For the purpose of this article, we will use Shell-Style syntax for simplicity.
For the purpose of this article, we will use Shell-Style syntax for simplicity.
85

edits