Parsing refers to the action by software of breaking an artifact into its constituent elements and capturing the relationship between those elements.

learn more… | top users | synonyms (1)

3
votes
3answers
95 views

Parsing multiple line records using Java 8 Streams

There was a suggestion in this StackOverflow question to move this question here. I added some more information and restructured the question a bit. I'm trying to parse the following file which ...
1
vote
1answer
42 views

Finite state machine for CSV data

I want to read a file containing comma-separated values, so have written a finite state machine: ...
4
votes
1answer
46 views

Create Java object from from page content or plain text

My job is to make a specified java objects from web page that contains following text: Companies: ...
0
votes
2answers
59 views

Unique combinations of sets with N min selections of overall set

I'm in the process of attempting to write a parser compiler. In this, sets play a major role. I'm in the 'lexical ambiguity' isolation phase, and to that, I need to yield a set of every possible ...
4
votes
0answers
49 views

RSS parser for Node.JS

I would like someone review this code and tell if it can be done better, or if the code is elegant and simple enough for the task at hand. I used code climate and I got 4/4 and my test coverage is ...
2
votes
1answer
39 views

Parse a string as a list of words and parse characters

I'm trying to create a list from a string with items alternating between words and parse characters like ['Hello', ' ', 'World'] Is there a built in function, ...
1
vote
1answer
72 views

Parsing a file for an Android device

I am trying to parse InputEvents of an Android device. Background: For an android device we have a utility getevent ...
1
vote
1answer
56 views

Parsing video files from a given directory

I have written a little class that is basicly looking for video files in given directory and then parsing some info about those files. Finally it saves everything in a list. To properly run this you ...
2
votes
1answer
57 views

Parsing oscilloscope data, follow up

Follow-up up on Parsing oscilloscope binary data. I wrote a simple parser for Tektronix's internal file format .isf. I revised my code to the following: ...
6
votes
3answers
72 views

Parsing oscilloscope binary data

I wrote a simply parser for Tektronix's internal binary file format .isf. The code is supposed to read in the file and return the header data as well as the actual ...
4
votes
1answer
61 views

Boolean expressions from infix to postfix notation using Dijkstra's Shunting Yard algorithm

I began working on a Java library that receives a boolean expression such as not A and (B or not C), compiles it to a circuit of logical gates \$\mathcal{C}\$, ...
2
votes
0answers
45 views

Organising loops for parsing a text file

The following code is from a utility I've written for myself. It takes a file in this format: ...
3
votes
1answer
51 views

Updating geo coordinates

An error in a live environment was detected when trying to convert string geo coordinates into a double. The current culture (hu-HU) uses comma instead of point ...
7
votes
1answer
692 views

A little integer parser vs clean code

I was said to post this as a new question. I improved my code from: Little part of the string to integer parser vs Clean Code However I think that it break SRP as it parses, iterates through string ...
4
votes
3answers
150 views

Little part of the string to integer parser vs Clean Code

I started reading a Clean Code book and some other articles on the Internet about OOD and design patterns and I'm a little confused. I've started to code a little string to integer parser which ...
10
votes
1answer
131 views

Injecting the Maharajah into the Barbarous Child's introduction

I'm building a random text generator! My idea was to borrow slightly from the string.Format method styling, have a "format string" that controlled the overall ...
6
votes
2answers
292 views

Writing an IRC Bot from scratch

I have been learning C# for a couple years now, and using small projects to help myself learn. My most recent project is a complete rewrite of my first C# project that just got out of hand (the old ...
5
votes
0answers
45 views

Expressing Rebol Dates in BNF

I'm looking to define the Rebol date format in BNF notation (as adapted for Rebol Parse). I'd like as best as possible to only define valid dates—at least those that are valid in Rebol at the moment: ...
2
votes
1answer
56 views

XML parsing program in C++

This is my code which works and compiles but I feel it may be non-optimal, especially the tag mapping and use of the if command. It reads two .xml files and finds ...
2
votes
3answers
85 views

Parsing a single CSV line into a list of strings

I've written this method to replace an older method that was much simpler, but used the regex split method and couldn't tell if a comma was in quotes/brackets/etc. and didn't read double quotes as ...
0
votes
0answers
32 views

Parsing sentences to create a chat bot

I am developing a chat bot with Node.Js. I am trying to find efficient way to parsing sentence. ...
1
vote
0answers
65 views

Simple, functional URL parsing library in Clojure

I recently wrote some code to handle parsing of URLs, even if those URLs might not be one hundred percent perfectly well-formed. (This constraint made using Java's ...
3
votes
1answer
36 views

Find change in XML and print node

This code has been developed with help on Stack Overflow. It is designed to compare two XML files and print the node for any differences (i.e if a entry appears in A.xml and not B.xml and vice versa). ...
5
votes
1answer
32 views

Using parser_combinators to parse a string

I am playing with Rust, and am trying to write a simple parser. I need to parse the string: "0123,456789" into a stucture: ...
-1
votes
2answers
114 views

Parsing a big text file, extract data & store it in a CSV file

I have a big log file (say 1-3 Gb) which I need to parse, extract data & save it in a CSV file. Text File Data ...
8
votes
1answer
175 views

Parsing equations from stdin

The program should read equations from stdin, parse them and generate a matrix of the coefficient which represents the system. Example: ...
4
votes
2answers
70 views

Extracting a number from provided URLs inside a text file

I need to extract a ID (int number) from a Url. Example: http://www.example.com/foo/bar/12345 For this I wrote 4 methods where the first one ...
2
votes
1answer
43 views

Two error-reporting conventions for a command-parser

I need to implement some function and I would like to report about a fail made inside a function. If function doesn't fail I need to get a some result (for example, ...
3
votes
1answer
59 views

Program for compacting other given code

I've just finished a small function that will reduce the size of code as much as possible without breaking anything. Obviously it makes everything a bit unreadable so it's not really for cleaning the ...
2
votes
2answers
152 views

Extracting a Decimal from a string

I have the following method which extracts a decimal value from a string. ...
3
votes
1answer
90 views

Java 8 file read method

I have a method which extracts filedata and converts it into a String array: ...
16
votes
3answers
862 views

Who's using what where - turning code into symbols

The Rubberduck project is coming along pretty nicely, and for the next version the parsing strategy is getting yet another revision, and this time around it really feels like it's done right. Or is ...
3
votes
1answer
58 views

Checking referential integrity of a database schema

I am using PHP PDOs to parse the results I am receiving from MySQL queries against a database. I am now running into an issue with running out of allocated memory. Are there any suggestions on ...
2
votes
1answer
42 views

Python function to strip inline repr'd unicode strings

I have to write a python function that takes a string that contains raw unicode strings (e.g. "u'hello' there") and transform it into a string that strips the ...
2
votes
1answer
83 views

C++ program that recognizes a context-free language

This program (C++) was for a class project. A program that recognizes a given context-free language by implementing a pushdown-automaton (PDA). The PDA recognizes the following language: S → $T$ ...
3
votes
2answers
69 views

Parse a list of people to determine who likes someone

I have a data file that looks like this: ...
1
vote
1answer
35 views

Parsing logs in sed efficiently

I have an application which log file has most lines start with a time/date, followed by a debugging level and the actual log message. Often I want to watch the output live and colors make it a lot ...
5
votes
1answer
122 views

Awesome INI Loader

I wrote a simple to use C++ INI file parser. The only thing it requires is the STD libs (of course that come with most major C++ compilers) So far it works very well, and the only thing that needs ...
1
vote
1answer
36 views

Argparse implementation

This is a follow up to Log probe requests of WiFi devices focussing on a specific element of the code. How can I indent this code to make it look great and be well formatted? ...
6
votes
2answers
55 views

Extracting information from a URI

I'm completely new to C and my first project is to create a simple cURL-like HTTP request client... but first, I need to create a function that can parse a URL. I've created this function, and it ...
2
votes
1answer
37 views

Performance of parsing math functions

I wrote the following code as part of a larger application. This code takes a string that defines a mathematical function on such as r,y x[0], x[1] etc. or any ...
4
votes
2answers
65 views

Expression design

I'm designing a Tokenizer / Parser / AST. I'm wondering if this basic idea of an expression is good and if this way of implementing Simplification is good, or should I use something like the Visitor ...
1
vote
0answers
46 views

Parsing a logic formula

I recently made a little program which task is to parse a logic formula (given in conjunctive normal form) I do the parsing with reloaded operator>> but I am ...
1
vote
1answer
46 views

Parsing specifically nested XML Tags

I've written a function that works however I'm sure there is a better way. I need to parse specific tags from an xml document (Microsoft Word docx document.xml). Here is the general structure of the ...
4
votes
0answers
59 views

Crawling and parsing meteorological data from the web into R

I am interested in collecting directly into R data published by the Mexican Met-office. The data pieces are spread through several URLs, but one can start here. There I can get the names and ...
3
votes
0answers
31 views

Generation and parsing of English numerals (cardinal and ordinal)

I need to use the English numerals (American) in Haskell, so I looked for a library that did it. I have not found one, therefore I developed the program that I am presenting here. There are actually ...
11
votes
2answers
110 views

HTML/XHTML/XML tokenization

I want to write a library to parse any valid or invalid HTML-like things. First of all, I am trying to build a lexer. Here is what I did; ...
2
votes
0answers
135 views

PDF-to-JSON converter

I've created some methods to help me convert PDF to text and then text to a JSON object. I've never done this before and I'm using this exercise as a way to improve my knowledge of Ruby. The ...
1
vote
1answer
41 views

String PathParser

I'm trying to decide if I should put time into refactoring this tiny class. PathParser only uses string locally and every other method is used by an outside class. ...