Questions tagged as 'parser'

1
answer

GOTO and ACTION table generator

Regarding LR Syntactic Analyzer, I fear the following Wiki: link There is a canonical algorithm for generating the GOTO and ACTION tables. I searched, and I did not find any software that has implemented this algorithm, so that it can...
asked by 29.09.2014 / 23:53
0
answers

Convert data in XML to SQL Insert

I have a file with some data in XML format example: <Row> <Data>BARRA DIRECAO AXIAL REGULAVEL</Data> <Data>000216</Data> <Data>FORD - EXPLORER 95/ RANGER 98/</Data> </Row>...
asked by 25.09.2017 / 00:18
0
answers

Lucene - Simple search with query

I'm trying to do searches on an index made with Lucene that was sent to me. They are simple searches that are not working ... package portugues; //https://lucene.apache.org/core/2_9_4/queryparsersyntax.html import java.nio.file.Paths; impor...
asked by 21.03.2017 / 13:28
2
answers

Find a snippet of an HTML

I get a string , and it contains an HTML. Here is a table, and its columns: <td width="24%" valign="top" border="1" style=" BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext 0.5pt solid; BORDER-LEFT...
asked by 10.11.2014 / 15:31
0
answers

Errors QueryPath Accent

I'm using one of the recommended libraries in this answer , QueryPath . To get the data I'm using Guzzle . However, I am having problems with data return (accent), it is replacing the characters with ? . OBS: The problem is not...
asked by 03.06.2015 / 14:42
2
answers

How to save the variables to be used in the next .Java?

My main (parser) code looks like this: public class pFormasDePagamento { public static void parseXML(String xml) throws ParserConfigurationException, SAXException, IOException { InputSource is = new InputSource(new StringReader(xm...
asked by 01.10.2014 / 15:02
1
answer

Application for login to another site (Facebook), error "InvalidSubmitError"

My code is this: import robobrowser import re url = 'https://m.facebook.com' loggedin_title = 'Facebook' # isto vai servir para confirmarmos que estamos loggedin, vendo o titulo da pagina para onde fomos redirecionados browser = robobrowser...
asked by 16.01.2018 / 12:25
1
answer

Regular expression when there are equal strings

I need to get the value "$ 0.00" in this string with a regular expression. I really do not understand expressions, I just know the basics of the basics. There are several other values on the page with "$" followed by the value, but I can not get...
asked by 16.11.2017 / 04:06
1
answer

NLPS parsing with external list

Parsing: An input text that will pass through the grammar and output are all entries that the grammar finds in the text. The problem is that my non-terminals are external list files and I can not visualize a way to do it. Example of a pseudo-...
asked by 31.08.2017 / 16:40
1
answer

Date parser in C

I was doing tests to do parsers of date and I made this example based on a program that formats through sscanf() with a constant string defined because I did not understand well where is the error: #include <cstring> #include...
asked by 25.07.2017 / 20:28