| Revision 1,
1.1 KB
checked in by gnue, 7 years ago
(diff) |
|
import project
|
| Line | |
|---|
| 1 | g£Cu |
|---|
| 2 | ------------- |
|---|
| 3 | |
|---|
| 4 | |
|---|
| 5 | ¡protoFILE |
|---|
| 6 | |
|---|
| 7 | @à¾Ft@CüoÍ |
|---|
| 8 | @gpû@F |
|---|
| 9 | |
|---|
| 10 | @@//g£CuÌv |
|---|
| 11 | @@Require("protoFILE"); |
|---|
| 12 | |
|---|
| 13 | @@//t[Ìì¬ |
|---|
| 14 | @@file := {_proto: @protoFILE}; |
|---|
| 15 | @@//I[v(mode Í man fopen ðQÆj |
|---|
| 16 | @@file:open(path, mode); |
|---|
| 17 | |
|---|
| 18 | @@//oÍ |
|---|
| 19 | @@file:print(str); |
|---|
| 20 | @@//PsüÍ |
|---|
| 21 | @@line := file:gets(); |
|---|
| 22 | @@//oCiüÍ |
|---|
| 23 | @@binary := file:read(len); |
|---|
| 24 | @@//EOF Ì`FbN |
|---|
| 25 | @@file:eof(); |
|---|
| 26 | @@//V[N |
|---|
| 27 | @@file:seek(offset, whence); // whence: 'set, 'curr or 'end |
|---|
| 28 | @@//t@C|C^Ìæ¾ |
|---|
| 29 | @@file:tell(); |
|---|
| 30 | @@//t@C|C^ð 0 Éß· |
|---|
| 31 | @@file:rewind(); |
|---|
| 32 | |
|---|
| 33 | @@//N[Y |
|---|
| 34 | @@file:close(); |
|---|
| 35 | |
|---|
| 36 | |
|---|
| 37 | ¡protoREGEX |
|---|
| 38 | |
|---|
| 39 | @à¾F³K\» |
|---|
| 40 | @gpû@F |
|---|
| 41 | |
|---|
| 42 | @@//g£CuÌv |
|---|
| 43 | @@Require("protoREGEX"); |
|---|
| 44 | |
|---|
| 45 | @@//³K\»IuWFNgÌì¬ |
|---|
| 46 | @@// gpÅ«é³K\»Í man regex ðQÆ |
|---|
| 47 | @@// IvVÍ i Æ m ªgpÂ\ |
|---|
| 48 | @@reg := /³K\»Ìp^[/IvV; |
|---|
| 49 | |
|---|
| 50 | @@//p^[}b`ÌÀs |
|---|
| 51 | @@// str c@õÎÛ̶ñ |
|---|
| 52 | @@// ßèl nil c ¸s |
|---|
| 53 | @@// ßèl zñ c ¬÷i}b`µ½ª¶ñªzñÌvfÉüéj |
|---|
| 54 | @@matchs = reg:match(str); |
|---|
| 55 | |
|---|
| 56 | @@//ãniNewtonScript ÉfXgN^ªÈ¢½ßj |
|---|
| 57 | @@reg:cleanup(); |
|---|
Note: See
TracBrowser
for help on using the repository browser.