Home
last modified time | relevance | path

Searched refs:addParseAction (Results 1 – 25 of 75) sorted by relevance

123

/dports/devel/py-pyparsing2/pyparsing-2.4.7/examples/
H A Ddelta_time.py41 return pp.CaselessKeyword(int_name).addParseAction(pp.replaceWith(int_value))
53 return CK(s) | CK(s + 's').addParseAction(pp.replaceWith(s))
76 time_ref_present = pp.Empty().addParseAction(pp.replaceWith(True))('time_ref_present')
105 ).addParseAction(fill_default_time_fields)
120 absolute_time_of_day.addParseAction(add_computed_time)
144 relative_time_reference.addParseAction(compute_relative_time)
150 time_reference.addParseAction(add_default_time_ref_fields)
183 absolute_day_reference.addParseAction(convert_abs_day_reference_to_date)
203 relative_day_reference.addParseAction(compute_relative_date)
210 day_reference.addParseAction(add_default_date_fields)
[all …]
H A Dinclude_preprocessor.py14 quoted_string = pp.quotedString.addParseAction(pp.removeQuotes)
41 include_directive.addParseAction(read_include_contents)
H A DsimpleSQL.py21 columnName.addParseAction(ppc.upcaseTokens)
24 tableName.addParseAction(ppc.upcaseTokens)
H A DhtmlTableParser.py27 link.addParseAction(lambda t: (t[0].text, t[0].href))
32 body.addParseAction(pp.tokenMap(str.strip),
H A DwithAttribute.py23 td.addParseAction(pp.withAttribute(align="right", width="80"))
H A DurlExtractor.py12 linkBody.addParseAction(lambda toks: ' '.join(toks[0].strip().split()))
H A DwordsToNum.py108 test_expr.addParseAction(verify_result)
H A DchemicalFormulas.py74 subscript_int = pp.Word(subscript_digits).addParseAction(cvt_subscript_int)
/dports/devel/py-pyparsing/pyparsing-3.0.6/examples/
H A Dnumber_words.py85 one_to_99.addParseAction(sum)
94 (pp.Optional(hundreds + opt_and) + one_to_99 | hundreds).addParseAction(sum)
101 hundreds.addParseAction(multiply)
102 thousands.addParseAction(multiply)
111 numeric_expression.addParseAction(sum)
H A Ddelta_time.py42 return pp.CaselessKeyword(int_name).addParseAction(pp.replaceWith(int_value))
66 return CK(s) | CK(s + "s").addParseAction(pp.replaceWith(s))
98 time_ref_present = pp.Empty().addParseAction(pp.replaceWith(True))("time_ref_present")
128 ).addParseAction(fill_default_time_fields)
148 absolute_time_of_day.addParseAction(add_computed_time)
177 relative_time_reference.addParseAction(compute_relative_time)
188 time_reference.addParseAction(add_default_time_ref_fields)
225 absolute_day_reference.addParseAction(convert_abs_day_reference_to_date)
250 relative_day_reference.addParseAction(compute_relative_date)
262 day_reference.addParseAction(add_default_date_fields)
[all …]
H A Dinclude_preprocessor.py14 quoted_string = pp.quotedString.addParseAction(pp.removeQuotes)
46 include_directive.addParseAction(read_include_contents)
H A DhtmlTableParser.py33 link.addParseAction(extract_text_and_url)
38 body.addParseAction(pp.tokenMap(str.strip), pp.tokenMap(strip_html))
H A DsimpleSQL.py37 columnName.addParseAction(ppc.upcaseTokens)
40 tableName.addParseAction(ppc.upcaseTokens)
H A DwithAttribute.py23 td.addParseAction(pp.withAttribute(align="right", width="80"))
H A DurlExtractor.py11 linkBody.addParseAction(lambda toks: " ".join(toks[0].strip().split()))
H A Dpartial_gene_match.py31 + pp.Word("ACGTN")[1, ...].addParseAction("".join)("gene")
H A DwordsToNum.py124 test_expr.addParseAction(verify_result)
H A DchemicalFormulas.py106 subscript_int = pp.Word(subscript_digits).addParseAction(cvt_subscript_int).set_name("subscript")
/dports/textproc/py-bibtexparser/bibtexparser-1.2.0/bibtexparser/
H A Dbibtexexpression.py32 expr.addParseAction(action)
114 string_name.addParseAction(self._string_name_parse_action)
140 quoted_value.addParseAction(pp.removeQuotes)
146 string_expr.addParseAction(self._string_expr_parse_action)
209 self.explicit_comment.addParseAction(remove_trailing_newlines)
210 self.explicit_comment.addParseAction(remove_braces)
225 self.implicit_comment.addParseAction(remove_trailing_newlines)
H A Dbparser.py186 self._expr.entry.addParseAction(
190 self._expr.implicit_comment.addParseAction(
193 self._expr.explicit_comment.addParseAction(
196 self._expr.preamble_decl.addParseAction(
199 self._expr.string_def.addParseAction(
/dports/devel/py-pyparsing2/pyparsing-2.4.7/
H A Dsimple_unit_tests.py293 …expr=pp.Combine(pp.Word(pp.nums) + '.' + pp.Word(pp.nums)).addParseAction(lambda t: float(t[0]))[.…
299 expr = pp.Word("0123456789").addParseAction(lambda t: int(t[0])),
305 expr = pp.Word(pp.nums).addParseAction(lambda t: int(t[0]),
312 expr = pp.Word(pp.nums).addParseAction(pp.tokenMap(int),
319 expr = pp.Word(pp.hexnums, exact=2)[...].addParseAction(':'.join),
325 expr = pp.Word(pp.hexnums, exact=2)[...].addParseAction(sorted),
344 expr = pp.pyparsing_common.integer[...].addParseAction(compute_stats_parse_action),
355 expr=pp.Regex(r'\d+\.\d+').addParseAction(lambda t: float(t[0]))[...],
371 expr = pp.Word(pp.nums).addParseAction(lambda t: int(t[0]))
392 + "(" + pp.CharsNotIn(")")('body') + ")").addParseAction(markup_convert),
/dports/cad/py-ezdxf/ezdxf-0.16.3/src/ezdxf/
H A Dqueryparser.py50 number.addParseAction(lambda t: float(t[0])) # convert to float
51 string_ = quotedString.addParseAction(lambda t: t[0][1:-1]) # remove quotes
/dports/www/py-httplib2/httplib2-0.20.2/python2/httplib2/
H A Dauth.py20 auth_param_name = token.copy().setName("auth-param-name").addParseAction(pp.downcaseTokens)
/dports/www/py-httplib2/httplib2-0.20.2/python3/httplib2/
H A Dauth.py26 auth_param_name = token.copy().setName("auth-param-name").addParseAction(downcaseTokens)
/dports/devel/py-pyparsing/pyparsing-3.0.6/tests/
H A Dtest_unit.py3034 charString1.addParseAction(_set_info)
3036 charString2.addParseAction(_set_info)
3045 comparitor.addParseAction(_set_info)
3053 modifier.addParseAction(_set_info)
3063 modifier.addParseAction(_set_info)
3074 modifier.addParseAction(_set_info)
4200 start.addParseAction(rfn)
6681 vals.addParseAction(add_total)
7538 expr.addParseAction(divide_args)
7561 expr.addParseAction(divide_args)
[all …]

123