Changeset 2060


Ignore:
Timestamp:
Aug 24, 2006, 7:34:05 PM (14 years ago)
Author:
orlov
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • to-imperative/trunk/java/org/refal/plus/library/Dos.java

    r2024 r2060  
    88import java.math.BigInteger;
    99import java.util.Calendar;
     10import java.lang.System;
    1011
    11 public final class Dos
     12public class Dos
    1213{
    1314    private static final Word[] months = {
    14             new Word("Jan"), new Word("Feb"), new Word("Mar"), new Word("Apr"),
    15             new Word("May"), new Word("Jun"), new Word("Jul"), new Word("Aug"),
    16             new Word("Sep"), new Word("Oct"), new Word("Nov"), new Word("Dec")  };
     15        new Word("Jan"), new Word("Feb"), new Word("Mar"), new Word("Apr"),
     16        new Word("May"), new Word("Jun"), new Word("Jul"), new Word("Aug"),
     17        new Word("Sep"), new Word("Oct"), new Word("Nov"), new Word("Dec")  };
    1718
    1819    private static final Character space = new Character(' ');
     
    5556    }
    5657
     58    static public void Args (Result args)
     59    {
     60        args.assignUnsafe(RefalRuntime.args);
     61    }
     62
     63    static public void GetEnv (Expr var, Result value)
     64    {
     65        java.lang.String s = System.getenv(var.toString());
     66        if (s != null)
     67            value.assign(s);
     68        else
     69            value.assign(Expr.empty);
     70    }
     71
    5772    static public void Exit (Expr e) throws RefalException
    5873    {
Note: See TracChangeset for help on using the changeset viewer.