Exemplo n.º 1
0
 public parser()
 {
     SNLScanner = new scanner();
     SNLPredict = new Predict("../../Predict.txt");
     SNLProduct = new Product("../../Product.txt");
     error      = new ErrorType();
     cur        = 0;
 }
Exemplo n.º 2
0
 public parser()
 {
     SNLScanner = new scanner() ;
     SNLPredict = new Predict("../../Predict.txt") ;
     SNLProduct = new Product("../../Product.txt") ;
     error      = new ErrorType() ;
     cur = 0;
 }
Exemplo n.º 3
0
    public static void Main(string[] args)
    {
        //abstract class
        Console.WriteLine("ABSTRACT CLASS");
        perpustakaan perpustakaan;

        perpustakaan = new penjagaperpustakaan();
        perpustakaan.pinjam();
        perpustakaan.kembalikan();

        Console.WriteLine();
        perpustakaan = new peminjam();
        perpustakaan.pinjam();
        perpustakaan.kembalikan();

        Console.WriteLine();
        Console.WriteLine();

        //interface
        Console.WriteLine("INTERFACE");
        Ifotocopy fotocopy;

        fotocopy = new scanner();
        fotocopy.info();
        fotocopy.fungsi();

        Console.WriteLine();
        fotocopy = new printer();
        fotocopy.info();
        fotocopy.fungsi();

        Console.WriteLine();
        fotocopy = new jilid();
        fotocopy.info();
        fotocopy.fungsi();
    }
Exemplo n.º 4
0
 AssertEquals(scanner.getAttributes(source).size(), 2);
Exemplo n.º 5
0
 AssertEquals(scanner.getElements(source).size(), 1);
Exemplo n.º 6
0
 public decodeState(slice <byte> data = default, long off = default, long opcode = default, scanner scan = default, error savedError = default, bool useNumber = default, bool disallowUnknownFields = default)
 {
     this.data                  = data;
     this.off                   = off;
     this.opcode                = opcode;
     this.scan                  = scan;
     this.savedError            = savedError;
     this.useNumber             = useNumber;
     this.disallowUnknownFields = disallowUnknownFields;
 }
Exemplo n.º 7
0
 // Use this for initialization
 void Start()
 {
     gc = GameObject.FindObjectOfType <garbage_collector> ();
     sc = GameObject.FindObjectOfType <scanner> ();
 }
Exemplo n.º 8
0
 AssertEquals(scanner.size(), 3);
Exemplo n.º 9
0
 public parser(ref ptr <PosBase> file = default, ErrorHandler errh = default, Mode mode = default, PragmaHandler pragh = default, scanner scanner = default, ref ptr <PosBase> @base = default, error first = default, long errcnt = default, Pragma pragma = default, long fnest = default, long xnest = default, slice <byte> indent = default)
 {
     this.file    = file;
     this.errh    = errh;
     this.mode    = mode;
     this.pragh   = pragh;
     this.scanner = scanner;
     this.@base   = @base;
     this.first   = first;
     this.errcnt  = errcnt;
     this.pragma  = pragma;
     this.fnest   = fnest;
     this.xnest   = xnest;
     this.indent  = indent;
 }
Exemplo n.º 10
0
 AssertNotNull(scanner.scan(Four.class));
Exemplo n.º 11
0
 AssertNotNull(scanner.scan(Three.class));
Exemplo n.º 12
0
 AssertNotNull(scanner.scan(Two.class));
Exemplo n.º 13
0
 AssertNotNull(scanner.scan(One.class));
Exemplo n.º 14
0
 AssertNull(scanner.scan(Convert.class));
Exemplo n.º 15
0
 AssertNull(scanner.Text);
Exemplo n.º 16
0
 assertTrue(scanner.isStrict());
Exemplo n.º 17
0
 public Decoder(io.Reader r = default, slice <byte> buf = default, decodeState d = default, long scanp = default, long scanned = default, scanner scan = default, error err = default, long tokenState = default, slice <long> tokenStack = default)
 {
     this.r          = r;
     this.buf        = buf;
     this.d          = d;
     this.scanp      = scanp;
     this.scanned    = scanned;
     this.scan       = scan;
     this.err        = err;
     this.tokenState = tokenState;
     this.tokenStack = tokenStack;
 }