The parsing tag has no wiki summary.
1
vote
2answers
55 views
Feedback on text parsing and control structures
I threw together this C program today to handle a bioinformatics data processing task. The program seems to work correctly, but I wanted to know if anyone has suggestions regarding how the input data ...
2
votes
1answer
70 views
Parse a text file in python
I would like to refactor a large python method I wrote to have better practices. I wrote a method that parses a design file from the FSL neuroimaging library. Design files are text files with settings ...
3
votes
2answers
34 views
QJson: Yet another Json parser and serializer for Qt, but with additional features
I wrote QJson, a utility class in/for Qt, I need you to take a look at. It is both a JSON parser and serializer, but with extended funcionality (going beyond the JSON specification) (see first ...
2
votes
1answer
65 views
DnD dice roll parser
Some time ago I've written a small parser (about 250 LoC) which is capable of executing the four arithmetic operators +-*/ as well as a dice-roll operator, NdM, which "rolls a dice", DnD style. The ...
3
votes
0answers
56 views
Unicode parsing in PHP
Firstly, apologies if this is not the correct type of question for here, I had it on the stackoverflow but it was closed with a suggestion I post here.
I’m in the process of converting from Latin 15 ...
0
votes
3answers
104 views
[JAVA]Parse an XML file using objects / methods
So I spent a while this morning creating an xml parser in java which is part of a job interview. I would love to have some people tear it apart so I can learn from any mistakes that I made so I can ...
1
vote
2answers
93 views
Help fix up my Python XML Schema parsing code
I've been working on a lightweight xml schema parser, and have what I think is a moderately clean solution (some parts helped out by previous questions I posted here) so far for obtaining all schema ...
1
vote
1answer
148 views
Review my prolog code for bibtex reader
I am trying to learn Prolog, and wrote a bibtex reader using gnu prolog.
I would like some feed back on my code in terms of: the way I write Prolog, and how it can be improved.
I am new here, and ...
1
vote
2answers
160 views
Messy c# code - can be improved? String Parsing
For various reasons, I'm parsing a string, this code will explain what I'm after:
string baseString = "This is a \"Very Long Test\"";
string[] strings = baseString.Split(' ');
...
-2
votes
1answer
135 views
CSV parsing in Perl
I am looking for a Perl (5.8.8) script for CSV parsing that would follow CVS standards.
(See Wikipedia or RFC-4180 for details)
Sure, code should be fast enough, but more important is that it should ...
2
votes
1answer
158 views
Query String Serializer
I have a ASP.NET Web Forms project, and I want to build calls to .aspx pages in a strongly-typed fashion. I ended up rolling my own serializer that takes simple structs and saves them to/loads them ...
3
votes
1answer
61 views
C# expression evaluator review request
I successfully created an expression evaluator in C#, and I would like to know if it works well, and what I can do to improve it.
class ExpressionEvaluator2
{
public enum Token
{
...
1
vote
1answer
593 views
Android: Optimize JSON insertion to SQLite (insert … on duplicate key ignore)
In current task, I'm refactoring the code of converting JSON file into SQLite database on Android device. Code compliant with Java 6.
As od benchmark, grabbing the code from remote server takes ~1 ...
0
votes
1answer
87 views
C-Style unsigned char parsing and manipulation in C/C++ - Proper algorithm correction and segmentation fault
Note that I'm using a C++ compiler ( hence, the cast on the calloc function calls) to do this, but the code is essentially C.
Basically, I have a typedef to an unsigned char known as viByte, which ...
2
votes
4answers
132 views
URI parsing and handling class
I wrote a simple class to deal with parsing and handling URIs for the project I'm currently working on, since it relies a lot on that functionality (eg the Router class and some HTML helpers). Here is ...