Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #39395
| Newsgroups | comp.lang.javascript |
|---|---|
| Date | 2021-01-28 02:56 -0800 |
| References | <c85dd94b-74dc-4bb9-8360-f47fa780f427n@googlegroups.com> |
| Message-ID | <265383fa-e692-4415-89ec-1531b1faff83n@googlegroups.com> (permalink) |
| Subject | Re: "Adhoc?" RPN mathparser using strings instead of stack. |
| From | Jonas Thörnvall <jonas.thornvall@gmail.com> |
torsdag 28 januari 2021 kl. 11:46:30 UTC+1 skrev Jonas Thörnvall: > It is basicly RPN parsing, but no stack instead i break out terms to calculate and divide string to into before string->calc string->after string. > > However after the subresult calculated *correct* and joined back, it somehow lose the sign "if it is start of the current bracket/substring" that is parsed/resolved. And i can't quite see why, the part that calculate the subresult in string call the function again until all operands in subsection exhausted. Is is recursive, well i just do not get where it lose the sign? > > I do not see a way to fix it, because i do not get where i lose the sign, so i would have to restructure the function calls to solve it. If someone could explain why the sign go missing i probably could fix it. > > https://jonasth.github.io/Mathparse/INDEX.HTML Is the call structure "sort of recursive"? and that is why it is hard to debug the code. I can see it lose the sign first iteration after substring resolved.
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
"Adhoc?" RPN mathparser using strings instead of stack. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2021-01-28 02:46 -0800
Re: "Adhoc?" RPN mathparser using strings instead of stack. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2021-01-28 02:56 -0800
Re: "Adhoc?" RPN mathparser using strings instead of stack. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2021-01-28 03:10 -0800
Re: "Adhoc?" RPN mathparser using strings instead of stack. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2021-01-28 05:40 -0800
Re: "Adhoc?" RPN mathparser using strings instead of stack. "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2021-01-28 08:33 -0800
Re: "Adhoc?" RPN mathparser using strings instead of stack. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2021-01-28 10:54 -0800
Re: "Adhoc?" RPN mathparser using strings instead of stack. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2021-01-28 10:58 -0800
Re: "Adhoc?" RPN mathparser using strings instead of stack. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2021-01-29 15:12 -0800
Re: "Adhoc?" RPN mathparser using strings instead of stack. John G Harris <niam@jghnorth.org.uk.invalid> - 2021-01-31 10:36 +0000
Re: "Adhoc?" RPN mathparser using strings instead of stack. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2021-01-31 05:09 -0800
Re: "Adhoc?" RPN mathparser using strings instead of stack. John G Harris <niam@jghnorth.org.uk.invalid> - 2021-01-31 18:32 +0000
Re: "Adhoc?" RPN mathparser using strings instead of stack. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2021-01-31 12:36 -0800
Re: "Adhoc?" RPN mathparser using strings instead of stack. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2021-01-31 12:44 -0800
Re: "Adhoc?" RPN mathparser using strings instead of stack. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2021-01-31 12:52 -0800
Re: "Adhoc?" RPN mathparser using strings instead of stack. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2021-02-03 13:38 -0800
Re: "Adhoc?" RPN mathparser using strings instead of stack. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2021-02-11 00:01 -0800
Re: "Adhoc?" RPN mathparser using strings instead of stack. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2021-02-11 00:39 -0800
Re: "Adhoc?" RPN mathparser using strings instead of stack. "sc...@sauyet.com" <scott@sauyet.com> - 2021-02-16 08:12 -0800
Re: "Adhoc?" RPN mathparser using strings instead of stack. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2021-02-16 12:33 -0800
Re: "Adhoc?" RPN mathparser using strings instead of stack. "sc...@sauyet.com" <scott@sauyet.com> - 2021-02-17 13:28 -0800
Re: "Adhoc?" RPN mathparser using strings instead of stack. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2021-02-17 23:04 -0800
Re: "Adhoc?" RPN mathparser using strings instead of stack. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2021-02-16 12:40 -0800
Re: "Adhoc?" RPN mathparser using strings instead of stack. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2021-02-16 13:58 -0800
Re: "Adhoc?" RPN mathparser using strings instead of stack. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2021-01-28 10:56 -0800
csiph-web