Skip to main content

Questions tagged [parsing]

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

2 votes
1 answer
130 views

Suppose we have an expression in InputForm as a string. The task is to find position of corresponding parentheses. For example parenthesis at position ...
azerbajdzan's user avatar
  • 32.8k
1 vote
4 answers
187 views

If arr = {1, {2, 3}}; we get {{2, 3}} from Cases[arr, {a___, b___} :> {a, b}] But if <...
lesobrod's user avatar
  • 2,590
6 votes
2 answers
220 views

I type some equations from text books into database, which later read from Mathematica to solve. Since I do this manually, sometimes I make mistakes where I type ...
Nasser's user avatar
  • 156k
4 votes
1 answer
199 views

I have the following function scriptQ to check whether an expression is a "script" or not. This function is frequently called by others, so I need to ...
Acacia's user avatar
  • 3,467
5 votes
1 answer
241 views

Is it possible to validate grammar related to Box formed expression (RowBox, FractionBox, ......
imida k's user avatar
  • 4,435
1 vote
1 answer
147 views

The documentation says that expr& has lower precedence than expr1 /. expr2. Thus, parsing should start from operators with ...
ForceBru's user avatar
  • 175
2 votes
1 answer
119 views

In the console REPL, we can see that input is parsed in a certain way, that is not equivalent to simply calling ToExpression on the input string. From math.exe using Mathematica 13.1: ...
Walhiskaz's user avatar
0 votes
0 answers
151 views

Upon opening a .wl file someone send me I noticed that about 20 seconds were spend parsing the file. Sometimes it spends less time doing so for much bigger files. Upon looking up the term "...
Gert's user avatar
  • 1,783
1 vote
2 answers
123 views

I try parse hub titles and links from this site: https://habr.com/en/hubs/, but code returns empty list. Can not understand why. ...
katifa sh's user avatar
2 votes
0 answers
1k views

I would like to input "rendered" subscripts in Wolfram Cloud, without having to verbosely type Subscript[a, b]. The local notebook shortcut is ...
Anti Earth's user avatar
  • 1,310
3 votes
2 answers
291 views

I have a function $F$ taking arbitrarily many arguments from ${a,c,z}$ where practically (technically it isn't) $a$ works as an opening bracket and $z$ as a closing. ($c$ stands for a value.) Double ...
Hauke Reddmann's user avatar
18 votes
2 answers
754 views

Former question: How to use wolframscript to develop flexible command-line tools? I am currently changing a notebook into a wolframscript for a "production" environment, where I plan to ...
Gravifer's user avatar
  • 926
16 votes
1 answer
642 views

How can I ingest Mathematica / WL benchmark results posted at Mathematica Stack Exchange (MSE), like the ones posted here? Assumptions: There are multiple answers with benchmarks posted The ...
Anton Antonov's user avatar
1 vote
0 answers
65 views

I'm trying to parse a LaTeX representation of a Desmos calculator (like this one) via Mathematica. Desmos exposes a JSON representation of its calculators, including a LaTeX representation of ...
aresnick's user avatar
  • 111
1 vote
1 answer
118 views

I have a huge output from Resolve (quantifier elimination) that I must parse to extract the coefficients as numbers. Take for instance something that looks like ...
cab20's user avatar
  • 125

15 30 50 per page
1
2 3 4 5
7