Skip to content

Value constant not accepted for behavior annex #2184

@philip-alldredge

Description

@philip-alldredge

Summary

When trying to specify an initial value constant for a behavior annex variable, a parse error occurs. This could be the result of having a bad version of the standard. Using a draft from 2017-02. The grammar on page 9 shows that a value_constant can be specified.

Steps to Reproduce

  1. Paste model
  2. Receive error unterminated behavior variable (missing ending ';')
package ba_test
public
	with Base_Types;

	process top
		features
			o1: out data port Base_Types::Integer_32;

		annex behavior_specification {**
          variables
            tmp :  Base_Types::Integer_32 :=1;
          states
            a : initial final state;
          transitions
            t : a -[]-> a {
              o1 := tmp
            };
        **};
	end top;

	
end ba_test;

Environment

  • OSATE Version: Nightly
  • Operating System: Windows

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions