- Timestamp:
- 05/15/05 13:22:17 (4 years ago)
- svk:copy_cache_prev:
- 4802
- Files:
-
- 1 modified
-
src/pge/run_pge.pir (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/pge/run_pge.pir
r3236 r3252 1 1 .sub _main 2 .local int spi, spc, utf8, pos, size1, size22 .local int argc, pos, size1, size2 3 3 .local pmc args, match, add_rule 4 .local string name, rule,input, result, cmd, sizeStr, arg1, arg24 .local string input, result, cmd, sizeStr, arg1, arg2 5 5 .local pmc stdin 6 .include "iglobals.pasm" 6 7 7 8 load_bytecode "PGE/Hs.pir" 8 9 match = find_global "PGE::Hs", "match" 10 11 getinterp args 12 set args, args[.IGLOBALS_ARGV_LIST] 13 argc = elements args 14 if argc == 3 goto do_args 9 15 10 16 loop: … … 52 58 goto loop 53 59 60 do_args: 61 arg1 = args[1] 62 arg2 = args[2] 63 result = match(arg1, arg2) 64 print result 65 54 66 end: 55 67 .end
