Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(17)  |  Call(8)  |  Derive(0)  |  Import(9)

src/d/c/dc-compilers-HEAD/spark-comp07/compiler.py   dc-compilers(Download)
from token import Token
 
from AST import (CompositeExpr, NumberExpr, Program, Variable,
                 VariableExpr, VarDecList)
 
    def p_expr_1(self, args):
        ' expr ::= ( oper expr expr ) '
        return CompositeExpr(args[2], args[1], args[3])
 
    def p_expr_2(self, args):

src/d/c/dc-compilers-HEAD/spark-comp06/compiler.py   dc-compilers(Download)
from token import Token
 
from AST import CompositeExpr, NumberExpr, Program, Variable, VariableExpr
 
class ProgramScanner(GenericScanner):
    def p_expr_1(self, args):
        ' expr ::= ( oper expr expr ) '
        return CompositeExpr(args[2], args[1], args[3])
 
    def p_expr_2(self, args):

src/d/c/dc-compilers-HEAD/comp06/compiler.py   dc-compilers(Download)
import sys
 
from AST import (Expr, CompositeExpr, NumberExpr,
                 Variable, VariableExpr, Program)
 
            e1 = self.expr()
            e2 = self.expr()
            ce = CompositeExpr(e1, op, e2)
            if self.token == ')':
                self.nextToken()

src/d/c/dc-compilers-HEAD/comp07/compiler.py   dc-compilers(Download)
import sys
 
from AST import (Expr, CompositeExpr, NumberExpr,
                 Variable, VariableExpr, Program)
 
            e1 = self.expr()
            e2 = self.expr()
            ce = CompositeExpr(e1, op, e2)
            if self.token == ')':
                self.nextToken()

src/d/c/dc-compilers-HEAD/comp09/compiler.py   dc-compilers(Download)
import sys
 
from AST import (Expr, CompositeExpr, NumberExpr, Variable, VariableExpr,
                 Program, AssignmentStatement, ReadStatement, WriteStatement,
                 StatementList, IfStatement)
            e1 = self.expr()
            e2 = self.expr()
            ce = CompositeExpr(e1, op, e2)
            if self.token == Symbol.RIGHTPAR:
                self.nextToken()

src/d/c/dc-compilers-HEAD/comp08/compiler.py   dc-compilers(Download)
import sys
 
from AST import (Expr, CompositeExpr, NumberExpr, Variable, VariableExpr,
                 Program, AssignmentStatement, ReadStatement, WriteStatement,
                 StatementList, IfStatement)
            e1 = self.expr()
            e2 = self.expr()
            ce = CompositeExpr(e1, op, e2)
            if self.token == Symbol.RIGHTPAR:
                self.nextToken()

src/d/c/dc-compilers-HEAD/comp05/compiler.py   dc-compilers(Download)
import sys
 
from AST import Expr, CompositeExpr, NumberExpr
 
class Compiler:
            e1 = self.expr()
            e2 = self.expr()
            ce = CompositeExpr(e1, op, e2)
            if self.token == ')':
                self.nextToken()

src/d/c/dc-compilers-HEAD/spark-comp05/compiler.py   dc-compilers(Download)
from token import Token
 
from AST import CompositeExpr, NumberExpr
 
class ExprScanner(GenericScanner):
    def p_expr_1(self, args):
        ' expr ::= ( oper expr expr ) '
        return CompositeExpr(args[2], args[1], args[3])
 
    def p_expr_2(self, args):

src/d/c/dc-compilers-HEAD/spark-comp08/compiler.py   dc-compilers(Download)
from token import Token, Id
 
from AST import (CompositeExpr, NumberExpr, Program, Variable,
                 VariableExpr, VarDecList)