• R/O
  • SSH
  • HTTPS

awkium: Commit


Commit MetaInfo

Revision75 (tree)
Time2014-02-18 18:33:33
Authory-moriguchi

Log Message

awkium nano initial

Change Summary

Incremental Difference

--- awkium-nano/java/src/net/morilib/awk/nano/misc/EncodingDetectorFactory.java (revision 74)
+++ awkium-nano/java/src/net/morilib/awk/nano/misc/EncodingDetectorFactory.java (revision 75)
@@ -27,7 +27,7 @@
2727 public final class EncodingDetectorFactory {
2828
2929 private static final String BASENAME =
30- "net.morilib.awk.encoding.EncodingDetectorResource";
30+ "net.morilib.awk.nano.misc.EncodingDetectorResource";
3131
3232 //
3333 private EncodingDetectorFactory() {}
--- awkium-nano/java/src/net/morilib/awk/nano/Awk.java (revision 74)
+++ awkium-nano/java/src/net/morilib/awk/nano/Awk.java (revision 75)
@@ -330,12 +330,16 @@
330330 AwkValue z = null;
331331 Reader r = null;
332332 AwkProgram p;
333- int x, i = 1, k;
333+ int x, i = 0, k;
334334 String[] a2;
335335 Charset ch;
336336 File d;
337337
338338 v = new HashMap<Object, Object>();
339+ if(args.length == 1 && args[0].equals("--repl")) {
340+ System.exit(repl());
341+ }
342+
339343 for(; i < args.length; i++) {
340344 s = args[i];
341345 if(s.equals("-f") && i + 1 < args.length) {
@@ -372,8 +376,7 @@
372376 }
373377
374378 if(f.size() > 0) r = FilesReader.newFiles(f);
375- if(args.length == 0) System.exit(repl());
376- a.add(args[0]);
379+ a.add("awk");
377380 for(; i < args.length; i++) a.add(args[i]);
378381
379382 a2 = a.toArray(new String[0]);
Show on old repository browser