Questions tagged [expression-evaluation]

Anything related to expression evaluation, i.e. the process of determining the value of an expression in running code.

Anything related to expression evaluation, i.e. the process of determining the value of an expression in running code.

189 questions
1
vote
2 answers

juel expression validation (vs Janino)

Calling all javax.el juel experts :-) We want to use JUEL to evaluate expressions in a pure Java context. These expressions are typically mathematical ones and are provided by users via a ui. An added aspect is that these expressions are part of…
1
vote
8 answers

++i+i++ evaluation

Confusion rose because of this post. The author updated his post, and the result became clear. Conclusion: Java evaluates expressions from left to right Closed! As evaluation of expression is done from right to left the following code should…
CᴴᴀZ
  • 521
  • 7
  • 20
1
vote
1 answer

Statement evaluator trace in Haskell

I'm attempting writing a program which takes in any generic statement, evaluates it, and shows each step as it is evaluated. For example, if we have a sequence of assignment statements, it should run as: Evaluate Assignment Statement 1 Show…
Dev Dreamer
  • 289
  • 1
  • 9
  • 18
1
vote
1 answer

JavaScript Library for processing operations

My code dynamically generates string/number operations. The program dynamically builds something similar to the following: "My name " + "is " + "G-Man" "Your age is " + "21" "5" * "5" I want to output this: My Name is G-Man Your age is 21 25 I…
harsimranb
  • 2,231
  • 1
  • 35
  • 55
0
votes
3 answers

Java: Library for expression parsing & evaluation with identifiers not known in advance

I need to evaluate a boolean expression. The purpose is to filter a set of tagged items. Tag can be any name (let's say, like Java identifier). For example: foo OR (bar AND !baz) This would be true for items tagged: foo fee foo bar boo bar I…
Ondra Žižka
  • 43,948
  • 41
  • 217
  • 277
0
votes
0 answers

ChromeProxyService:Failed to evaluate expression '_secondaryCompleter?.completeError': InternalError:Expression evaluation in async frames is not sup

I updated Flutter and Chrome version but non of them worked for me! I still get the following error when I try to run a Flutter Web application on Chrome: Launching lib/main.dart on Chrome in debug mode... main.dart:1 This app is linked to the debug…
0
votes
0 answers

Can user inputted mathematical function verified by math.js expression parser cause arbitrary code execution?

I am making a graphing calculator, and need a fast way to run a user inputted mathematical function (e.g. y = x^3 + 2). Previously I was using the math.js evaluate function, however this was very slow. Now I have switched to using the JavaScript new…
0
votes
1 answer

How to pass arguments into a function as formula arguments like y ~ x

I am trying to write a function that calls another function that requires formula arguments. However, I'm not able to pass the y ~ x arguments to the inner function. Without the wrapping function it works: test.df <- data.frame("test.x" =…
rrr
  • 1,914
  • 2
  • 21
  • 24
0
votes
0 answers

Javascript Short-circuit expression gives confusing result

I am quite confused and don't understand what's going on with the output of this javascript expression evaluation. let m = 6; let x=true; m = m || x ? 10 : 0; console.log(m); //10 In above example we have m = 6 || 10, so m should be 6 but it…
The Prenx
  • 483
  • 4
  • 15
0
votes
1 answer

Delphi Prism: Replacement for TMathparser class for evaluating complex expressions?

In Delphi, I use a component called TMathparser to evaluate an expression to get an answer. I am trying to get it to work in Delphi Prism and it is not working out too well. In fact, there is just too many errors. So, I was wondering if there is…
ThN
  • 3,235
  • 3
  • 57
  • 115
0
votes
1 answer

SFMC AMPscript Understanding Controlling Expression Evaluation unclear

The below expression is not making sense to me. I'm having a hard time understand why it will result in "free shipping". Can someone elaborate on the explanation? %%[ var @statusTier, @amount, @freeShipping set @statusTier = "Bronze" set @amount =…
0
votes
1 answer

When is an expression formally evaluated?

As far as I know, evaluating an expression X means determining what's the value that the expression X yield. But I have a question about when is an expression is evaluated? Specifically, when are the expressions of a class type are evaluated? For…
user20175049
0
votes
3 answers

Are function parameters evaluated in a C# null-conditional function call?

Are function arguments always evaluated in a C# null-conditional function call? i.e. in the following code: obj?.foo(bar()); Is bar evaluated if obj is null?
Nathan Phillips
  • 11,899
  • 1
  • 31
  • 24
0
votes
1 answer

Parse SQL and Evaluate an Expression

I have a SQL query that I would like to parse evaluate. I have parsed the SQL using JSQL Parser. Now, I need to evaluate the where clause in the SQL. I would like to do it in Flink as part of the filter function. Basically,…
guru
  • 409
  • 4
  • 21
0
votes
1 answer

Multiple operation arithmetic

I just completed a beginners C programming course and I thought handling arithmetic would be a great first project! I had no problem figuring out how to do basic single operation arithmetic. I ahieved what I initially desired but now I'm curious if…
wick3dr0se
  • 19
  • 4