foo.pas(26,4) Error: Identifier not found "flag"
foo.pas(26,15) Error: Wrong number of parameters specified for call to "Pos"
Error: Found declaration: Pos(const ShortString;const ShortString):Int64;
Error: Found declaration: Pos(Char;const ShortString):Int64;
Error: Found declaration: Pos(const ShortString;const RawByteString):Int64;
Error: Found declaration: Pos(const ShortString;Char):Int64;
Error: Found declaration: Pos(const RawByteString;const RawByteString):Int64;
Error: Found declaration: Pos(Char;const RawByteString):Int64;
Error: Found declaration: Pos(const UnicodeString;const UnicodeString):Int64;
Error: Found declaration: Pos(Char;const UnicodeString):Int64;
Error: Found declaration: Pos(WideChar;const UnicodeString):Int64;
Error: Found declaration: Pos(const RawByteString;const UnicodeString):Int64;
Error: Found declaration: Pos(const UnicodeString;const RawByteString):Int64;
Error: Found declaration: Pos(const ShortString;const UnicodeString):Int64;
Error: Found declaration: Pos(Char;const Variant):Int64;
Error: Found declaration: Pos(ShortString;const Variant):Int64;
Error: Found declaration: Pos(const AnsiString;const Variant):Int64;
Error: Found declaration: Pos(const WideString;const Variant):Int64;
Error: Found declaration: Pos(const Variant;const Char):Int64;
Error: Found declaration: Pos(const Variant;const ShortString):Int64;
Error: Found declaration: Pos(const Variant;const AnsiString):Int64;
Error: Found declaration: Pos(const Variant;const WideString):Int64;
Error: Found declaration: Pos(const Variant;const Variant):Int64;
foo.pas(29,43) Fatal: Syntax error, "THEN" expected but ")" found
Fatal: Compilation aborted
Error: /usr/bin/ppcx64 returned an error exitcode