Project

General

Profile

Bug #3960

RExpression2 - support arrayType(arrayType(....)) tokens

Added by ben leinfelder over 10 years ago. Updated over 10 years ago.

Status:
Resolved
Priority:
Normal
Category:
actors
Target version:
Start date:
04/07/2009
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
3960

Description

the Ptolemy expression: {{1}, "b", {3}}
will result in a Token with type:
arrayType(arrayType(string,1),3)

We need to [recursively] handle ArrayTokens that are input to the RExpression2 actor

History

#1 Updated by ben leinfelder over 10 years ago

can now handle arrayType(arrayType(...) so that the given expression ends up looking like: {"1", "b", "3"}
Notice that the list structure was dropped since there is only a single value for each. When the one of the inner arrays has more than a single item, the list structure is used: {{1,2}, "b", {3}}
becomes {{"1", "2"}, {"b"}, {"3"}}
And, yes, everything is converted to their string representation as noted in another ticket.

#2 Updated by Oliver Soong over 10 years ago

Why make assumptions about dropping single element list structures? Maybe I want a list of single element lists.

#3 Updated by ben leinfelder over 10 years ago

out of my control!

#4 Updated by Redmine Admin over 6 years ago

Original Bugzilla ID was 3960

Also available in: Atom PDF