Commit f6028b06 authored by Daniel Honsel's avatar Daniel Honsel
Browse files

fixed assignment issue

Therefore, an enumeration is treated as a field reference. 
parent fa3fc808
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1110,7 +1110,7 @@ ExtendedFieldReference:
	// BaseTemplate contained in FunctionRef
// SingleVarInstance contained in TimerVarInstance (according to EBNF rules)
RefValue:
	SingleConstDef | ModuleParameter | FieldReference | FormalTemplatePar | SingleTempVarInstance | Enumeration |
	SingleConstDef | ModuleParameter | FieldReference | FormalTemplatePar | SingleTempVarInstance |
	FunctionRef | TimerVarInstance | FormalPortPar | PortElement;

	// IDENTIFIER omitted
@@ -1194,8 +1194,9 @@ TTCN3ReferenceList:
// StructFieldRef | ArrayOrBitRef | ParRef;
// ParRef -> RefValue
//TODO: check if SubTypeDefNamed is really needed here
//TODO: check if Enumeration is really needed here
FieldReference:
	StructFieldDef | FormalValuePar | UnionFieldDef | SubTypeDefNamed;
	StructFieldDef | FormalValuePar | UnionFieldDef | SubTypeDefNamed | Enumeration;

ArrayOrBitRef:
	SQUAREOPEN FieldOrBitNumber SQUARECLOSE;