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

All Samples(13)  |  Call(6)  |  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_expr_3(self, args):
        ' expr ::= letter '
        name = str(args[0])
        return VariableExpr(name, None)
 

src/d/c/dc-compilers-HEAD/comp07/compiler.py   dc-compilers(Download)
import sys
 
from AST import (Expr, CompositeExpr, NumberExpr,
                 Variable, VariableExpr, Program)
 
            self.error("Variable was not declared")
        else:
            return VariableExpr(ch, e.getValue())
 
    def oper(self):

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_3(self, args):
        ' expr ::= letter '
        return VariableExpr(str(args[0]))
 
    def p_oper_1(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)
 
                return self.number()
            else:
                return VariableExpr(self.letter())
 
    def number(self):

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)
                except KeyError:
                    self.error("Variable " + name + " was not declared")
                return VariableExpr(v)
 
    def number(self):

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)
                except KeyError:
                    self.error("Variable " + name + " was not declared")
                return VariableExpr(v)
 
    def number(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)