57,580 questions
2
votes
1
answer
56
views
How to evaluate arithmetic expression in pseudo‑SQL style (Lua 5.1)
In love2D I have a string that represents a mathematical expression, for example:
local expr1 = "[p35] div [p36]"
local expr2 = "((([p35]*100) div [p36]) mod 100)"
local params = {...
1
vote
1
answer
61
views
java-cup sends "Syntax error @ Symbol: PARSER" and NullPointerException when compiling a .cup
I’m working on a DSL parser using Java CUP, and I’m getting this error when trying to compile my .cup grammar:
Error: Syntax error @ Symbol: PARSER (unknown:19/-5(-1) - unknown:19/1(-1))
Error : ...
0
votes
2
answers
102
views
More parsing-friendly Python debugger locals() output [closed]
I need the locals() text output to be easier to parse then what the default output is. I am using a IDE that I wrote in C that starts a tty() to run pdb and it captures the output from locals() and ...
-3
votes
1
answer
122
views
Best way to parse an http request (from scratch) [closed]
I'm currently working on a mini NGINX project just for learning purposes. I already implemented some logic related to socket networking. I'm now facing the problem of parsing the HTTP requests, and I ...
Advice
1
vote
0
replies
94
views
Parsing with Python html.parser: accessing and using raw tags
I'm not a Python specialist, so bear with me. I'm trying to replace a Perl HTML::TokeParser based parser that I use for template foreign language translation to use Python html.parser. Here's the ...
0
votes
0
answers
43
views
How to force drain3 to keep log event defining parameter as a static?
I am trying to parse log lines for log anomaly detection, but two log lines are too similar for the parser to keep them apart:
[Something] VM Started
[Something] VM Paused
it parses it to VM <*>...
0
votes
0
answers
12
views
NEST Network Emulation: httperf parser fails with AttributeError: 'NoneType' object has no attribute 'group
markdown
I'm trying to run HTTP emulation experiments using NEST (Network Emulation and Simulation Testbed) but encountering parser errors with httperf output due to regex pattern mismatches.
Problem
...
0
votes
0
answers
33
views
New validation of xml by .iterparse
Good Morning,
Does anyone use validation via .iterparse?
I need to rebuild the plugin to validate files over 2GB.
To do this, I need to change the parser – I'm using etree.iterparse instead of lxml....