Questions tagged [parsing]

Questions about built-in/custom parsers or parsing techniques.

14 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
33
votes
0answers
557 views

Front end goes wild with named slots

Bug introduced in 10 and persisting through 12.0.0 Assume the following simple expression {#"Test"}& Now go in front of the ...
16
votes
0answers
215 views

Why does the FrontEnd lose matching of parentheses when we insert quotations?

Bug introduced in V10.0 and resolved in V11.3 (These are guesses. It is likely to have been resolved in an earlier version V11.X, but V11.3 is what I have access to.) I am running Mathematica 10.0....
12
votes
0answers
337 views

After editing a file Mathematica 10 interprets […]^2 as […(])^2

Bug introduced in 10.0 and persisting through 10.2 or later This is a very weird bug and I don't really know how to reproduce it, so I'll just copy-paste the whole code ...
6
votes
0answers
65 views

Repeated string pattern: difference between the FrontEnd and WolframScript?

This code works fine in a string based interface like WolframScript or Mathematica Kernel. Run this through a string based interface ...
6
votes
0answers
83 views

Infix non-ASCII operator needs a space to be parsed correctly in a script

Bug introduced in 9.0 or earlier and persisting through 11.1 First off: ...
3
votes
0answers
61 views

Slight loss of precision when parsing JSON

Exporting to JSON is working well for me under 11.3. The issue present in previous versions seem to be solved: ...
3
votes
0answers
126 views

SymbolicC/SymbolicCUDAFunction generating C/C++ parser?

I wish to do some program transformation and analysis. Is there any package that generates SymbolicC expressions from C code? In a sense I'm looking for the ...
2
votes
0answers
42 views

Confusing behavior for GrammarRules and GrammarApply

I have been experimenting with GrammarRules in an attempt to create a parser for text downloaded from the web. I have been using Interpreter to help understand the behavior of GrammarApply. Here is a ...
2
votes
0answers
85 views

Where do the radicals end?

In an early iteration of this question on the Mathematics SE, the radicals weren't properly formatted, so they only had the √ symbol with no indication of which terms were supposed to be ...
1
vote
0answers
70 views

Scraping XML Paragraphs with URLs

I've been working on scraping an article from CNBC. The link is here I want to scrape the main body, and the code I have so far is this: ...
0
votes
0answers
29 views

How do I replace a specific parse expression with a number in a parse calculation?

If t^2 + a^2 + b^2 + c^2 = 1. Is there any way to replace the t^2 + a^2 + b^2 + c^2 expression to the number ...
0
votes
0answers
285 views

HTTP Status Code 403

I'm working with some scraping and have run into a bit of a problem. The website I am scraping is this: https://seekingalpha.com/symbol/CRM/stocktalks I am essentially trying to scrape the "stock ...
0
votes
0answers
596 views

How to prevent space trimming when importing HTML with ImportString?

I am importing a HTML-formatted string with ImportString[string, "HTML"] to properly parse all HTML-escaped characters like ...
0
votes
0answers
61 views

parsed matrix not deleting elements in adjusted matrix

I have a matrix that has been parsed to delete certain rows and columns, as well as delete certain elements on the diagonal on the matrix. The problem is that it does this in theory when i take the ...