» Home » parsing » Page 1
Parsing namespaces with clang: AST differences in when including a header in another source file or parsing it directly
Category : Programming Languages

Sorry for the verbose question, but I can't see any other way to make it clear. I am writing a tool to transform C++ header files to SWIG interface files as a starter for further fine-tuning.

In the process of doing this, I've noticed some strange behavior by clang (v3.0). If I parse the header file I get a significantly different AST than if I parse a source file that includes th

View Replies

Parsing a document with BeautifulSoup while not-parsing the contents of <code> tags
Category : Programming Languages

I'm writing a blog app with Django. I want to enable comment writers to use some tags (like <strong>, a, et cetera) but disable all others.

In addition, I want to let them put code in <code> tags, and have pygments parse them.

For example, someone might write this comment:

I like this article, but the third code exampl

View Replies

apache.commons.fileuploads not parsing the request after one time parsing
Category : Programming Languages

i am submitting form with text and file types input fields and using this code to get text data

but the problem is that

List<FileItem> items = new ServletFileUpload(new DiskFileItemFactory()).parseRequest(request);
for (FileItem item : items) {
if (item.isFormField()) {
// Process normal fields here.
//Taking all text and doing task<

View Replies

Parsing Error: There is problm while parsing the package, Avoidable or not
Category : Programming Languages

I want to give a custome message like:

Upgrade your Android OS to Gingerbread 2.3.3

Rather than

Parsing Error, There is a problem parsing the package

Is there a way to check the device minsdk and application sdk and then decide, i did that but it already give the same error.

View Replies

Parsing content from one table and then insert the result of parsing to another
Category : Programming Languages

I have 2 tables :

Table document
| id_document | document_address | document_content |
| 1 | C |Example sentences A. Example sentences B.|
| 2 |

View Replies

Parsing/Evaluating not to values, but saving the functions? So that parsing happens only once
Category : Programming Languages

I'm trying to implement spreadsheet like functionality where it maintains variables and updates them correctly when other variables or "cells" change.

The only implementation I have seen so far is one that stores the inputted data in a string and evaluates it, however when data changes and cells need to be recalculated it always needs to evaluate the strings again.


View Replies

Parsing a reserved word in Parsing Expressive Grammar (PEG.js)
Category : Programming Languages

The similar question and the author's website give me solutions like this:

Identifier "identifier"
= !ReservedWord [A-Za-z_]+
= "test"
/ "abc"

This solution can't parse an identifier like this "test_var".

In this example, the grammar !ReservedWord will exclusive all variables starting with "test" or "abc".

View Replies

Parsing a String into Date with DateFormat not parsing correctly
Category : Programming Languages

I've been searching all over and just can't find a explanation or reason why this is happening but the parse(String) method of DateFormat just isn't parsing my String correctly.

I'm trying to parse a String into the date format that is used for HTTP headers and got as far as getting the String on its own such as:

Thu, 11 Nov 2010 18:34:22 GMT


View Replies

In JSON parsing i am having issue at the time of dynamic parsing
Category : Mobile Programming

I can't get exact out put after JSON parsing.

strURLRootView is NSString Object of "RootViewController.m" class...

strURLRootView = txt_EnterURL.text;

strURLRank is also the NSString Object of "CheckRank_ViewController.m" class...

strURLRank = strURLRootView;

View Replies

Is there some difference between parsing network and parsing a file?
Category : Programming Languages

I am writing a tool to dump redis 's rdb data file. I send a 'sync' command the save as a slave. and then parse the rdb to keys,values.
However, I can not parse the rdb when directly read from the network. It works well when I write the network data to a file and pares the file instead . I don't know why . The code parse the network and the file is completely same.
Is there some diffe

View Replies

2012 / 2017 Copyrights BigHow , All Rights Reserved .