osate / osate2

Open Source AADL2 Tool Environment
http://osate.org
Eclipse Public License 2.0
39 stars 8 forks source link

Error when declaring internal features and processor feature #424

Closed philip-alldredge closed 10 years ago

philip-alldredge commented 10 years ago

I received parsed errors when trying to explicitly declare internal features and processor features as described at https://wiki.sei.cmu.edu/aadl/index.php/Metamodel_updates

See comments for details about when the errors occur.

package ipf_test
public
    thread test_thread
    end test_thread;

    data test_data
    end test_data;

    subprogram test_subprogram
    end test_subprogram;

    thread implementation test_thread.impl
    internal features
        e: event;
        ed1: event data;
        ed2: event data test_data; -- Parse error. "extraneous input 'test_data' expecting';

    processor features
        p: port;
        s1: subprogram;
        s2: subprogram test_subprogram; -- Parse error. "extraneous input 'test_subprogram' expecting';
    end test_thread.impl;
end ipf_test;
philip-alldredge commented 10 years ago

That works well. Thank you!