close Warning: Can't synchronize with repository "(default)" (/var/svn/tolp does not appear to be a Subversion repository.). Look in the Trac log for more information.

Opened 20 years ago

Closed 20 years ago

Last modified 18 years ago

#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 danirus

Status: newassigned

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.

comment:2 Changed 20 years ago by danirus

Component: ENGINE_ParserESTIMATE

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 danirus

Resolution: fixed
Status: assignedclosed

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 Víctor de Buen Remiro

bug_file_loc: http://cvs.tol-project.org/viewcvs.cgi/tol_tests/tol/Bugzilla/bug_000162
Note: See TracTickets for help on using tickets.