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

All Samples(14)  |  Call(7)  |  Derive(0)  |  Import(7)

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_program(self, args):
        ' program ::= vardeclist : expr '
        return Program(args[0], args[2])
 
    def p_vardeclist_1(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_program(self, args):
        ' program ::= vardeclist : expr '
        return Program(args[0], args[2])
 
    def p_vardeclist_1(self, args):

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)
            self.nextToken()
 
        program = Program(arrayVariable, self.compositeStatement())
        if self.token != Symbol.EOF:
            self.error("EOF expected")

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)
            self.nextToken()
 
        program = Program(arrayVariable, self.compositeStatement())
        if self.token != Symbol.EOF:
            self.error("EOF expected")

src/d/c/dc-compilers-HEAD/comp07/compiler.py   dc-compilers(Download)
import sys
 
from AST import (Expr, CompositeExpr, NumberExpr,
                 Variable, VariableExpr, Program)
 
            self.nextToken()
            e = self.expr()
            return Program(arrayVariable, e)
 
    def varDecList(self):

src/d/c/dc-compilers-HEAD/comp06/compiler.py   dc-compilers(Download)
import sys
 
from AST import (Expr, CompositeExpr, NumberExpr,
                 Variable, VariableExpr, Program)
 
            self.nextToken()
            e = self.expr()
            return Program(arrayVariable, e)
 
    def varDecList(self):

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)