pyparsing
How to improve pyparsing start-up time?
I have written a large (to me) grammar using pyparsing to parse H248 message, which is a text format, with about 500 lines of pypasing constructs. I found the average performance is acceptable if I fe[详细]
2023-04-11 02:30 分类:问答Is there a "startswith" method in pyparsing
Hey I have written a very simple parser with pyparsing which detects some tokens in a text and then replaces them with a different string. The problem is that right now my code only works with exact m[详细]
2023-04-08 04:03 分类:问答ParseException: Expected end of text
I am trying to parse text using pyparsing. My function is shown below. Firstly, I construct a list containing all the terms in my dictionary (a dictionary of commonly used terms in my website). Then I[详细]
2023-04-07 12:47 分类:问答pyparsing with ebnf and whitespaces
I\'m using http://pyparsing.wikispaces.com/file/view/ebnf.py to convert my ebnf definition. ebnf def looks like this:[详细]
2023-04-06 03:50 分类:问答pyparsing - performance tips for parallel logs processing
I\'m using a 2 processes Pool to parallel parse several log files, po = Pool(processes=2) pool_object = po.apply_async(log_parse, (hostgroup_sender_dir, hostname, host_depot_dir,synced_log, prev_last[详细]
2023-04-01 09:28 分类:问答Pyparsing: Attempt to be non-greedy causes infinite loop
I\'m trying to create a parser for the RCS file format, however, it experiences an infinite loop when trying to parse RCSid in the context of RCSadmin. Removing the offending line[详细]
2023-03-31 07:27 分类:问答anything wrong with using pyparsing
i\'ve written this to parse my own .dotf file: def parseFromDOTF(file_path): comment = \"%\" + restOfLine[详细]
2023-03-29 09:31 分类:问答How do I tell pyparsing to discard parts of the parsed string?
I\'m writing a parser for some marked-up data,开发者_如何学Go and I\'d like to get pyparsing to discard things like start and end tags in the final result, leaving just the data.[详细]
2023-03-28 15:22 分类:问答How do I specify token ordering in pyparsing?
Suppose I\'m parsing the following line: The quick brown fox jumps over the lazy dog I\'d like to parse this as:[详细]
2023-03-28 02:57 分类:问答Controlling my output
Here is the code: #!/usr/bin/env python import json import sys import os import parser sys.path.append(\'Z:\\_protomotion\\Prog\\HelperScripts\')[详细]
2023-03-27 18:11 分类:问答