Data dodania Pytanie
2017-04-11 18:04 How to solve a control flow graph for pure expressions or functions? »
I have a simple, high-level assembly language, for which I can generate control flow graphs. I'm trying to solve/parse those control graphs for pure e...
(0) odpowiedzi
2017-04-11 17:04 Parsing a "simple" grammar »
Sorry in advance; I am sure this question will seem almost idiotic to people who are used to playing with parsers and grammars, but these are foreign ...
(1) odpowiedzi
2017-03-31 07:03 Android JSON parsing error cannot be converted to JSONArray »
I'm fairly new to Android dev, and am trying to write a programme to parse some JSON from a website and output it in a ListView. However, when I run m...
(5) odpowiedzi
2017-03-21 15:03 Java/Kotlin JSON parsing improvement »
I consume an API which gives me this type of JSON: { "data": { "name": "Start", "pid": "1", "position": { "data": { "x": ...
(0) odpowiedzi
2017-02-24 10:02 In Python, how to parse a string representing a set of keyword arguments such that the order does not matter »
I'm writing a class RecurringInterval which - based on the dateutil.rrule object - represents a recurring interval in time. I have defined a custom, h...
(2) odpowiedzi
2017-02-19 17:02 read multiline strings with ruby, broken by "\" »
in some RPM spec files (for instance), there are multiline strings which look like: %build export CFLAGS="%{optflags} -fomit-frame-pointer \ -W -Wall...
(2) odpowiedzi
2017-02-12 18:02 PHP to Parse a HTML page and output a certain div »
So I've been trying to embed a part of a website within my website due to security reasons I cannot disclose the website that I am trying to embed so ...
(1) odpowiedzi
2017-02-10 16:02 Regex challenge: changing formats of negative numbers »
First of all, I think I have to apologize for not having that much knowledge of regular expressions (yet). I have searched and searched, but haven't f...
(1) odpowiedzi
2017-01-31 02:01 Removing <head> issues, I need guide/assistance »
So guys, i'm make a web parser it was good but i saw that some words inside <head> is screwing everything up (and <strong> in the body too...
(1) odpowiedzi
2017-01-29 06:01 Parse PHP into HTML style parameter »
I want to make the style parse from the information given in the query. I have the bgcolor & text color that I want displayed listed in my table,...
(0) odpowiedzi
2017-01-25 18:01 Insert a large csv file, 200'000 rows+, into MongoDB in NodeJS »
I'm trying to parse and insert a big csv file into MongoDB but when the file extends 100'000 rows I get a bad response from the server. And the files ...
(1) odpowiedzi
2017-01-04 23:01 How does ruby parse 2 /3/ 4 as 2 ÷ 3 ÷ 4? »
A lot of ruby's syntax and parsing is relatively logical, but I am confused as to how ruby knows, from context, that 2 /3/ 4 is 2 ÷ 3 ÷ 4 instead of...
(1) odpowiedzi
2016-12-29 03:12 BeautifulSoup `find_all` generator »
Is there any way to turn find_all into a more memory efficient generator? For example: Given: soup = BeautifulSoup(content, "html.parser") return ...
(3) odpowiedzi
2016-12-24 01:12 Python: how to Parse and check the time? »
How do I extract the IP address that occurs 10 times within a one-second time interval? In the following case: 241.7118.197.10 28.252.8 ...
(2) odpowiedzi
2016-12-21 10:12 How to parse files that cannot fit entirely in memory RAM »
I have created a framework to parse text files of reasonable size that can fit in memory RAM, and for now, things are going well. I have no complaints...
(6) odpowiedzi
2016-12-19 12:12 ruby rspec in `block (2 levels) in <top (required)>' »
I have problems with error message ./spec/models/lib/parsers/s_reality_cz/matcher_spec.rb:12:in `block (2 levels) in ' in every rspec test. What I'm d...
(1) odpowiedzi
2016-12-01 14:12 split String by space separated »
I need to split words by space separated in java, so I have used .split function in-order to achieve that like as shown below String keyword = "appl...
(5) odpowiedzi
2016-12-01 14:12 Parsing C# Conditional Compilation statements in roslyn »
How do I parse C# conditional compilation statement using Roslyn. In the following code, I want Roslyn to give the Conditional compilation statement ...
(2) odpowiedzi
2016-11-20 10:11 Ruby on sinatra, JSON::parserError issue and 757: unexpected token »
I use rest API on Ruby with sinatra. I got payment information from IAMPORT,,, def get_authrestapi() @key = IMP_KEY @secret = IMP_SECRET ...
(1) odpowiedzi
2016-11-19 11:11 How can the PL/SQL grammar included with ANTLR4 be tested? »
I'm just getting started using ANTLR, and want to try test parsing some simple PL/SQL statements using the plsql.g4 grammar. I am following the format...
(1) odpowiedzi
2016-11-14 13:11 how can I store a string without "" in common lisp? »
Im trying to store in a: (seft a (read-from-string ".")) in order to get a = . not a = "." but it doesnt work. ...
(2) odpowiedzi
2016-11-09 10:11 Is there a way to force an attoparsec not to backtrack? »
I've written some parsers using Attoparsec but only now realised that I don't always want them to backtrack on failure, but attoparsec parsers always ...
(0) odpowiedzi
2016-11-05 11:11 Creating a JRuby parser implementation to generate AST from java file »
I am currently trying to parse the following java code to get an AST from my .java files in a jrubyparser implementation: import static org.junit.Ass...
(1) odpowiedzi
2016-10-26 17:10 Why does Roslyn have two versions of syntax per language? »
I have been looking at the Roslyn code base and noticed that they have two versions of syntax(One internal and one public). Often these appear to be r...
(1) odpowiedzi
2016-10-26 08:10 How can I retrieve Enum from char value? (C#) »
I have the following enum public enum MaritalStatus { Married = 'M', Widow = 'W', Widower = 'R', Single='S' } In one function I hav...
(3) odpowiedzi
2016-10-24 21:10 Set literal gives different result from set function call »
Why does the set function call wipe out the dupes, but parsing a set literal does not? >>> x = Decimal('0') >>> y = complex(0,0) &g...
(2) odpowiedzi
2016-10-13 23:10 How can I find all known ingredient strings in a block of text? »
Given a string of ingredients: text = """Ingredients: organic cane sugar, whole-wheat flour, mono & diglycerides. Manufactured in a faci...
(1) odpowiedzi
2016-10-10 09:10 Using arbitrary trees with Free Monads in Scala+Cats »
I am creating a library for grammars that will have 2 different interpretations: 1) parsing strings based on the grammar 2) generating strings in the ...
(0) odpowiedzi
2016-10-06 17:10 How do you match a string surrounded by optional whitespace with SBT Parsers »
I'm trying to parse a command line argument for an sbt InputTask using SBT Parsers (http://www.scala-sbt.org/0.13/docs/Parsing-Input.html) but I'm fai...
(0) odpowiedzi
2016-09-27 14:09 Adding Xml Attribute to All elements except root Node »
I am trying to add new attribute to my xml files in c#. my xml file format is shown below: <Root MessageOfRoot="Welcome to Xml"> <Header...
(1) odpowiedzi
2016-09-26 13:09 java.lang.NumberFormatException for input string "1" »
So, I have an issue that really bothers me. I have a simple parser that I made in java. Here is the piece of relevant code: while( (line = br.readLin...
(1) odpowiedzi
2016-09-25 15:09 Testing of a new Java parser »
Purely as a self-learning exercise, I'm trying to write a Java parser in Perl using the Parse::RecDescent module. I may later re-implement the parser ...
(1) odpowiedzi
2016-09-14 16:09 Basic access authentication in Chrome url fails (http) »
Since few days, I noticed an issue in url parsing in chrome that worked previously. Indeed when using basic access authentification directly in url u...
(0) odpowiedzi
2016-09-10 08:09 Correctly Parsing JSON in Swift 3 »
I'm trying to fetch a JSON response and store the results in a variable. I've had versions of this code work in previous releases of Swift, until the ...
(2) odpowiedzi
2016-08-25 09:08 Parsing float stored as string should throw Exception »
I have a string which stores a number. Now i want to parse that string and get as float. import java.util.*; import java.lang.*; import java.io.*; ...
(1) odpowiedzi