comparison graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/parser/Parser.frame @ 12752:71991b7a0f14

SL: Enhanced SimpleLanguage with support for if statements, function calls, function caching + inlining and builtins.
author Christian Humer <christian.humer@gmail.com>
date Mon, 11 Nov 2013 21:34:44 +0100
parents b6743d7eb8d4
children 7c418666c6c9
comparison
equal deleted inserted replaced
12712:882a0aadfed6 12752:71991b7a0f14
24 24
25 If not otherwise stated, any source code generated by Coco/R (other than 25 If not otherwise stated, any source code generated by Coco/R (other than
26 Coco/R itself) does not fall under the GNU General Public License. 26 Coco/R itself) does not fall under the GNU General Public License.
27 ------------------------------------------------------------------------*/ 27 ------------------------------------------------------------------------*/
28 -->begin 28 -->begin
29 package com.oracle.truffle.sl.parser;
30
29 import java.util.*; 31 import java.util.*;
30 32
31 import com.oracle.truffle.sl.*; 33 import com.oracle.truffle.sl.*;
32 import com.oracle.truffle.sl.nodes.*; 34 import com.oracle.truffle.sl.nodes.*;
33 35
43 public Token la; // lookahead token 45 public Token la; // lookahead token
44 int errDist = minErrDist; 46 int errDist = minErrDist;
45 47
46 public final Scanner scanner; 48 public final Scanner scanner;
47 public final Errors errors; 49 public final Errors errors;
48 private final NodeFactory factory; 50 private final SLNodeFactory factory;
49 -->declarations 51 -->declarations
50 public Parser(Scanner scanner, NodeFactory factory) { 52 public Parser(Scanner scanner, SLNodeFactory factory) {
51 this.scanner = scanner; 53 this.scanner = scanner;
52 this.factory = factory; 54 this.factory = factory;
53 errors = new Errors(); 55 errors = new Errors();
54 } 56 }
55 57