How to use the deprecated.compiler.lib.lcomp.ast.Span.from_slice function in Deprecated

To help you get started, we’ve selected a few Deprecated examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github StanfordLegion / legion / deprecated / compiler / lib / lcomp / parse.py View on Github external
def p_downregion_regions_list_additional_region(self, p):
        'downregion_regions_list : downregion_regions_list "," downregion_region'
        p[0] = ast.DownregionRegions(
            span = ast.Span.from_slice(p),
            regions = p[1], region = p[3])
github StanfordLegion / legion / deprecated / compiler / lib / lcomp / parse.py View on Github external
def p_expr_read(self, p):
        'expr : READ "(" expr ")"'
        p[0] = ast.ExprRead(
            span = ast.Span.from_slice(p),
            pointer_expr = p[3])
github StanfordLegion / legion / deprecated / compiler / lib / lcomp / parse.py View on Github external
def p_type_numeric_int64(self, p):
        'type_numeric : INT64'
        p[0] = ast.TypeInt64(
            span = ast.Span.from_slice(p))
github StanfordLegion / legion / deprecated / compiler / lib / lcomp / parse.py View on Github external
def p_downregion_region(self, p):
        'downregion_region : ID'
        p[0] = ast.DownregionRegion(
            span = ast.Span.from_slice(p),
            name = p[1])
github StanfordLegion / legion / deprecated / compiler / lib / lcomp / parse.py View on Github external
def p_expr_parens(self, p):
        'expr : "(" expr ")"'
        p[2].span = ast.Span.from_slice(p)
        p[0] = p[2]
github StanfordLegion / legion / deprecated / compiler / lib / lcomp / parse.py View on Github external
def p_definitions_def(self, p):
        'definitions : definitions def'
        p[0] = ast.Definitions(
            span = ast.Span.from_slice(p),
            definitions = p[1], definition = p[2])
github StanfordLegion / legion / deprecated / compiler / lib / lcomp / parse.py View on Github external
def p_function_privilege(self, p):
        'function_privilege : "," privilege'
        p[0] = ast.FunctionPrivilege(
            span = ast.Span.from_slice(p),
            privilege = p[2])
github StanfordLegion / legion / deprecated / compiler / lib / lcomp / parse.py View on Github external
def p_function_params_list_single_param(self, p):
        'function_params_list : function_param'
        p[0] = ast.FunctionParams(
            span = ast.Span.from_slice(p),
            param = p[1])
github StanfordLegion / legion / deprecated / compiler / lib / lcomp / parse.py View on Github external
def p_struct_constraints_list_single_constraint(self, p):
        'struct_constraints_list : struct_constraint'
        p[0] = ast.StructConstraints(
            span = ast.Span.from_slice(p),
            constraint = p[1])
github StanfordLegion / legion / deprecated / compiler / lib / lcomp / parse.py View on Github external
def p_privilege_regions_list_single_region(self, p):
        'privilege_regions_list : privilege_region'
        p[0] = ast.PrivilegeRegions(
            span = ast.Span.from_slice(p),
            region = p[1])