Revision: 1776
Author: robhamerling
Date: Sat Mar 13 11:57:30 2010
Log: JalV2.4n-beta compiler dd 13 March 2010


http://code.google.com/p/jallib/source/detail?r=1776

Modified:
 /trunk/compiler/jalv2
 /trunk/compiler/jalv2.exe
 /trunk/compiler/jalv2.pdf
 /trunk/compiler/jalv2.txt
 /trunk/compiler/jalv2ecs.exe

=======================================
--- /trunk/compiler/jalv2       Wed Mar 10 12:55:13 2010
+++ /trunk/compiler/jalv2       Sat Mar 13 11:57:30 2010
Binary file, no diff available.
=======================================
--- /trunk/compiler/jalv2.exe   Wed Mar 10 12:55:13 2010
+++ /trunk/compiler/jalv2.exe   Sat Mar 13 11:57:30 2010
Binary file, no diff available.
=======================================
--- /trunk/compiler/jalv2.pdf   Sun Dec 27 02:19:03 2009
+++ /trunk/compiler/jalv2.pdf   Sat Mar 13 11:57:30 2010
Binary file, no diff available.
=======================================
--- /trunk/compiler/jalv2.txt   Sun Dec 27 02:19:03 2009
+++ /trunk/compiler/jalv2.txt   Sat Mar 13 11:57:30 2010
@@ -360,6 +360,12 @@
    used to initialize a constant or variable array in which case
    each character is used as one entry.

+   For example:
+            VAR BYTE ch = "123"    ' ch is set to '1'
+            VAR BYTE str[] = "123" ' str[0] is set to '1'
+                                   ' str[1] is set to '2'
+                                   ' str[2] is set to '3'
+
    An ASCII constant allows the C language escaping rules as
    follows:

@@ -374,6 +380,7 @@
    "\t"     horizontal tab
    "\v"     vertical tab
    "\xdd"   hexidecimal constant
+   "\\"     A single '\'

    constants other than ASCII constants may also contain any
    number of underscores ("_") which are ignored, but are useful
@@ -778,6 +785,22 @@
    using pseudo variables (see below). If the value passed is not
    a pseudo-variable, a suitable one is created.

+   There are two ways to pass an array into a sub-program:
+      PROCEDURE string_write (BYTE IN str[5]) IS...
+      PROCEDURE string_write (BYTE IN str[]) IS...
+
+   The first follows the pass-by-value symantics noted above. An
+   array variable of size 5, str, is allocated in the namespace of
+   the procedure. Any callers must call with an array of exactly 5
+   bytes, which is copied into the local variable and used.
+
+   Alternately, the second version created a flexible array. This
+   is pass-by-reference which means (1) the amount of data space
+   used for str is only two or three bytes, and (2) any sized
+   array can be passed in. This is generally far more useful, and
+   far less wasteful. The operator COUNT can be used to determine
+   the size of the array passed in.
+
    Procedures and functions can be nested.

    Example:
=======================================
--- /trunk/compiler/jalv2ecs.exe        Tue Dec 29 00:59:29 2009
+++ /trunk/compiler/jalv2ecs.exe        Sat Mar 13 11:57:30 2010
Binary file, no diff available.

--
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jallib?hl=en.

Reply via email to