20 lines
512 B
Plaintext
20 lines
512 B
Plaintext
alpha parser, version 0.2 (2023-03-04) - Annotated Source Code for file error.operator.alpha
|
|
001: type string2int: string -> integer
|
|
002:
|
|
003: function entry : string2int
|
|
004:
|
|
005: entry(arg) := {
|
|
006: [ integer: i; integer: sum ]
|
|
007: sum := 0;
|
|
008: i := 0;
|
|
009: while (i < 10) {
|
|
010: sum = sum + i;
|
|
^0
|
|
LINE 10:13 ** ERROR #0: assignment operator (:=) expected but equality operator (=) found.
|
|
|
|
011: i := i + 1;
|
|
012: }
|
|
013: return 0;
|
|
014: }
|
|
015:
|