Hey there,
I have some xml, lets say <names number="12"></names>
When I run the following:
$simpleXMLElement = new SimpleXMLElement($xml);
pr($simpleXMLElement);
I get the following:
SimpleXMLElement Object
(
[@attributes] => Array
(
[number] => 12
)
[0] =>
)
It throws in that 0 entry. This ...
I have a table like this:
| Update | Name | Code | modification date |
| | name1 | code1 | 2009-12-09 |
| | name2 | otehercode | 2007-09-30 |
Where the Update column contains checkboxes <input type='checkbox' />.
The checkbox initial state is determined before rendering the t...
I did some searching but haven't landed anything that looks useful yet but I am wondering if anyone knows of something (tool,lib etc) that can parse English phrases and translate them into a cron string.
For example: Every Tuesday at 15:00 converts to 0 15 * * 2
It seems like something that would have lots of gotchas and it would be pr...
I am looking for a simple compiler that compiles a simple language, I need it to write a paper about it and to learn how compilers work, I am not looking for a sophisticated thing just a simple language (by simple I mean a small code because for example gcc is toooooo big). any help is appreciated.
...
I want to create a System.Drawing.Color from a value like #FF00FF or FF00FF without needing to write code for that. There is any .NET built-in parser for that?
...
Hi There,
I've started working with the rapidshare.com API. I'm just wondering what is the best way to read the reply from and API call.
To be honest I think the API is all over the place. Some replies are comma delimited which is fine. I'm having with problems with the account info response. This is not comma delimited and the fields ...
Hi,
My current code looks like this:
DateTime dateBegin = DateTime.ParseExact(begin, "MM/dd/yyyy", null);
DateTime dateEnd = DateTime.ParseExact(end, "MM/dd/yyyy", null);
But it throws an exception whenever the date in "end" is different. I get the dates from a DateTimePicker control, thus the date may look like "1/12...
I want to write an app that parse particular threas on a phpbb forum. So if a thread has 200 pages with 10 posts (that doesn't give you the ability to adjust the post count per page), and has an address like this:
http://www.forum.com/viewtopic.php?t=10&postdays=0&postorder=asc&start=0
where start parameter changes when yo...
So, just as a fun project, I decided I'd write my own XML parser. No, not to parse a specific document, and no, not using an XML parser library. I mean writing code to parse out any XML document into a usable data structure. Just because I like the challenge. :-)
With that said, so far it's proved to be... interesting. It's not as easy ...
Fri Nov 27 10:00:01 EST 2009 974 12506
Fri Nov 27 11:00:01 EST 2009 988 12655
Fri Nov 27 12:00:01 EST 2009 1005 12886
Fri Nov 27 13:00:01 EST 2009 1026 13115
Fri Nov 27 14:00:01 EST 2009 1042 13429
I tried to explode on \n and then \t, but it looks like there are ...
I am currently working on a project for traversing an excel document and inserting data into a database using C#.
The relevant data for this project is:
The excel sheet has 14 rows at the top that I do not care about. (sometimes 15, see Russia/Siberia below)
The data is grouped by name into 2 columns (date and value), such as:
Sh...
Trying to parse/scrape the course site for memphis. The site is "https://spectrumssb2.memphis.edu/pls/PROD/bwckgens.p_proc_term_date". It appears to be some sort of javascript issue, or dynamic generation of the text. I can see the underlying DOM structure using livehttpdheaders/Firefox, but not when I simply view the underlying source/t...
lex and yacc are supposed to be used together.
Which ones is the scanner and which one is the parser?
Which one creates a scanner and which one creates a parser?
...
GEDCOM is a standard for exchanging genealogical data.
I've found parsers written in
C
perl
Ruby
and even Factor
but none so far written in Python. The closest I've come is the file _GedcomParse.py from the GRAMPS project, but that is so full of references to GRAMPS modules as to not be usable for me.
I just want a simple standal...
In compiler class we made a parser for a made up language that is a simplified version of C. All the parser does is make a symbol table based on the input and exit with an error message if the syntax is incorrect. Now we need to take an input file that is written in this language, and convert it into mips code (actually spim code which ...
I have to parse a page that is using javascript functions for its display and so we cant see any data in its source code.But if i save that page to my system than it shows everything in its source. Please suggest me some way out so that i can parse that page.
...
I need to be able to take a formula that uses the OpenDocument formula syntax, parse it into syntax that Python can understand, but without evaluating the variables, and then be able to evaluate the formula many times with changing valuables for the variables.
Formulas can be user input, so pyparsing allows me to both effectively handle ...
I'm using yacc to make a symbol table for a made-up language grammar.
Column 1 will have either "variable" or "function."
Column 2 will have either "int" or "void."
I was thinking of naming one column "type" but then I wouldn't know what to call the other one.
...
By concept/function/implementation, what are the differences between compilers and parsers?
...
I would like to know how is the best way to create the syntax tree.
...