Commit 22ed536a authored by Miklos Magyari's avatar Miklos Magyari
Browse files

Allowing specification of the ttcn3 version without the 'language' keyword (issue #432)


Signed-off-by: Miklos Magyari's avatarMiklos Magyari <miklos.magyari@sigmatechnology.se>
parent 6738c731
......@@ -3850,7 +3850,9 @@ pr_LanguageSpec returns[List<String> languageSpec]
@init {
$languageSpec = new ArrayList<String>();
}:
( pr_LanguageKeyword
// The 'language' keyword is now optional, but this is against the standard where it is mandatory.
// Reason: offical conformance test codes miss this 'language' keyword.
( pr_LanguageKeyword ?
t = pr_FreeText { $languageSpec.add( $t.string ); }
( pr_Comma
t = pr_FreeText { $languageSpec.add( $t.string ); }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment