#162 closed defect (fixed)
TOL break down Polyn p2 = B^(2)* Real x;
Reported by: | jlaybar | Owned by: | danirus |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Math | Version: | 1.1.1 |
Severity: | normal | Keywords: | |
Cc: |
Description
Real x = 2;
Works
Polyn p1 = B(2)*x;
/ TOL break down
Polyn p2 = B(2)* Real x;
Change History (4)
comment:1 Changed 20 years ago by
Status: | new → assigned |
---|
comment:2 Changed 20 years ago by
Component: | ENGINE_Parser → ESTIMATE |
---|
This is not a problema of the Parser Unit.
A rule to verify if a problem is related with the Parser Unit consist in parsing the
code with Tolbase. If there is no error messages, the problem is not in the parser.
Now, we can solve this problem in two ways:
1- In the evaluation engine
2- Reducing the amount of code that can be recognized by the Parser
The first choice could be easiest than the second.
comment:3 Changed 20 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
This pseudo-bug has just been resolved.
This is a problem related with explicit Type specification in implicit casting
operations.
You don't have to specify explictly the Type "Real" in:
Polyn p2 = B * Real x;
comment:4 Changed 18 years ago by
bug_file_loc: | → http://cvs.tol-project.org/viewcvs.cgi/tol_tests/tol/Bugzilla/bug_000162 |
---|
The BNF Grammar implemented by Tol Parser can describe unacceptable situations
like this. Tol has to improve its Parser in order to reduce the amount of code that
can be recognized as a valid Tol code.