Skip to content

Commit dac4f6d

Browse files
committed
Clean up uAST and add more to strings module
1 parent 326bd3f commit dac4f6d

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Rhodus_Version_3/uBuiltInStr.pas

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ constructor TBuiltInStr.Create;
3232
begin
3333
inherited Create ('strings', 'String Module');
3434

35+
36+
addStringValue('ascii_lower', 'abcdefghijklmnopqrstuv', 'lower ascii characters', true);
37+
addStringValue('ascii_upper', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'upper ascii characters', true);
38+
addStringValue('digits', '0123456789', 'digits', true);
39+
3540
addMethod(str, 1, 'str', 'Converts a string into a number: strings.str ("1.23"');
3641
addMethod(val, 1, 'val', 'Converts a number into a string: strings.val (1.23)');
3742
addMethod(formatStr, 2, 'format', 'Formats a number and returns a string, eg strings.format (2.3456, "%3.2f")');

Rhodus_Version_3/uProgramCode.pas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ interface
1717
opCode : TOpCode; // 1 byte
1818
index : integer; // 4 bytes
1919
float : double; // This is currently only used by the inc and dec op codes
20-
moduleName : string;
20+
moduleName : string;// Use by import module
2121
symbolName : string;
2222
end;
2323
TCode = TArray<TByteCode>;

0 commit comments

Comments
 (0)