I need a way to save and load user configurations for a game (controls, graphics, etc.) to a file. I want to do this in a cross-platform manner, and if I have to use libraries, I want them to have a simple enough syntax. How do I save and load config files, and what format should I use? XML and INI seem popular but all of the parsers I h...
Let me explain. Suppose I want to teach Python to someone who only speaks Spanish. As you know, in most programming languages all keywords are in English. How complex would it be to create a program that will find all keywords in a given source code and translate them? Would I need to use a parser and stuff, or will a couple of regexes a...
Hello,
I have a question.
How could I get the data from a google search response?
I.e.:Results 1 - 100 of about 230,533,709 for blogs. (0.25 seconds)
I want to get the value 230,533,709.
I use php to get the html response from the url.
I.e.: http://blogsearch.google.com/blogsearch?hl=en&ie=UTF-8&q=blogs&btnG=Search+Blog...
Hello, I'm writing a compiler for a shading engine and every worked fine until I reached the statements parsing part.
I used an abstract syntax tree defined with classes to do all the work (to simplify typechecking and intermediate code generation).. so I have an ancestor class ASTNode and all descending classes like ASTFloat, ASTExpres...
I'm looking for a java library that allows me to parse a java source file and that gives me an AST representation of the code.
Actually I'm only interested in the class and method definitions with their annotations. I don't need the AST of the method code.
I'm using this information for code generation. This is why I can't compile the ...
Hello All,
I am very new to using Jquery and Json. I have a servlet that is returning an array of JSONObject's ( basically a JSONArray object ).
I am trying to parse this array within JavaScript and am running into trouble here.
I have a javascript variable "var result" that gets the result from the servlet and I am trying to parse it...
I wonder how to determine the FIRST set of E with grammar:
E -> XYE | e
X -> x
Y -> y
Can anyone give me some direction?
...
if I have a string in the format of
(static string) name (different static string ) message (last static string)
(static string) name (different static string ) message (last static string)
(static string) name (different static string ) message (last static string)
(static string) name (different static string ) message (last static...
Hello, I did it before... But I forgot.
I have a file with some data:
0.5 0.6 0.7
1.2 1.5
How can I read this in c++? I did it with stream... something like:
float var = 0;
stream >> var;
...
I've got to construct a basic xml file listing website assets (pictures and text strings) that a flash photo gallery references.
I'm using a Mac and OpenOffice. I've got Dreamweaver, dashcode, and a couple of open source IDE's. I'm not a programmer, so scripting gets a little difficult.
I'm hand typing the file right now, but the task ...
I'm writing a simple web crawler in Ruby and I need to fetch all href contents on the page. What is the best way to do this, or any other web page source parsing, since some pages might not be valid, but I still want to be able to parse them.
Are there any good Ruby HTML parsers that allow validity agnostic parsing, or is the best way j...
hi,
I search web-based markdown-file parser to presentation.
I want to presentation from online markdown-file, realtime parse.
Because I want to manege markdown-files on git repository like github.
I try to parse on ruby script(gem) 'slideshow' or 'slidedown'.
It is very useful but it need parsed before.
I know javascript base present...
I have looked at the following software tools:
Ragel
ANTLR
BNF Converter
Boost::Spirit
Coco/R
YACC
ANTLR seems the most straight-forward, however its documentation is lacking.
Ragel looks possible, too, but I do not see an easy way to convert BNF into its syntax.
What other tools are available that can take BNF input and generate a ...
J2EE has ServletRequest.getParameterValues().
On non-EE platforms, URL.getQuery() simply returns a string.
What's the normal way to properly parse the query string in a URL when not on J2EE?
...
I am parsing an Excel file and am having difficulty reading in the value of a cell that has a custom cell format of dd mmm yy. The value in the cell in question is 29 Oct 09 (cell B25). When I run
String arrive = Convert.ToString(_worksheets["GENERAL"].get_Range("B25", Type.Missing).Value2);
I get "40114" as the cell's value.
Th...
Is there a class or set of functions built into the .NET Framework (3.5+) to parse raw emails (MIME documents)?
I am not looking for anything fancy or a separate library, it needs to be built-in. I'm going to be using this in some unit tests and need only grab the main headers of interest (To, From, Subject) along with the body (which ...
I'd like to override HttpStyleUriParser, since I only want to modify it slightly. Microsoft also states (See MSDN)
Microsoft strongly recommends that you use a parser shipped with the .NET Framework. Building your own parser increases the complexity of your application, and will not perform as well as the shipped parsers.
However, ...
I'm trying to format a file so that it can be inserted into a database, the file is originally compressed and arround 1.3MB big.
Each line looks something like this:
398,%7EAnoniem+001%7E,543,480,7525010,1775,0
This is how the code looks like that parses this file:
Village = gzip.open(Root+'\\data'+'\\' +str(Newest_Date[0])+'\\...
Hello,
I have approx. 12000 cells in excel containing RTF (including formatting tags). I need to parse them to get to the unformatted text.
This is the example of one of the cells with text:
{\rtf1\ansi\deflang1060\ftnbj\uc1
{\fonttbl{\f0 \froman \fcharset0 Times New Roman;}{\f1 \fswiss \fcharset238
Arial;}}
{\colortbl ;\red255\green2...
I have data which in theory is a list, but historically has been input by the user as a free form text field. Now I need to separate each item of the list so that each element can be analysed.
Simplified examples of my data as input by users:
one, two, three, four, five
one. two. three, four. five.
"I start with one, then do two, ma...