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

All Samples(41)  |  Call(38)  |  Derive(0)  |  Import(3)

src/a/n/anapsid-HEAD/ANAPSID/Decomposer/parseQuery1_1.py   anapsid(Download)
from ply import lex, yacc
 
from services import Query, Argument, Triple, UnionBlock, JoinBlock, Optional, Filter, Expression, Service
 
# Lexer
def p_desc_var_0(p):
    """
    desc_var : DESC LPAR VARIABLE RPAR
    """
    p[0] = Argument(p[3],False,True)
def p_desc_var_1(p):
    """
    desc_var : VARIABLE
    """
    p[0] = Argument(p[1],False,False)
def p_desc_var_2(p):
    """
    desc_var : ASC LPAR VARIABLE RPAR
    """
    p[0] = Argument(p[3],False,False)
def p_var_list(p):
    """
    var_list : var_list VARIABLE
    """
    p[0] = p[1] + [Argument(p[2], False)]

src/a/n/anapsid-HEAD/ANAPSID/Decomposer/parseQuery.py   anapsid(Download)
from ply import lex, yacc
 
from services import Query, Argument, Triple, UnionBlock, JoinBlock, Optional, Filter, Expression
 
# Lexer
def p_desc_var_0(p):
    """
    desc_var : DESC LPAR VARIABLE RPAR
    """
    p[0] = Argument(p[3],False,True)
def p_desc_var_1(p):
    """
    desc_var : VARIABLE
    """
    p[0] = Argument(p[1],False,False)
def p_desc_var_2(p):
    """
    desc_var : ASC LPAR VARIABLE RPAR
    """
    p[0] = Argument(p[3],False,False)
def p_express_arg_0(p):
    """
    express_arg : uri
    """
    p[0] = Argument(p[1], True)

src/a/n/anapsid-HEAD/ANAPSID/Decomposer/decomposer.py   anapsid(Download)
from Tree import Node, Leaf
from utils import *
from services import Service, Argument, Triple, Filter, Optional, UnionBlock, JoinBlock, Query
 
logger = logging.getLogger(__name__)