Commit 82d16d23 authored by Johannes Mey's avatar Johannes Mey
Browse files

also test Opt-NTAs for !13

parent 25aef927
Pipeline #6279 passed with stage
in 3 minutes and 25 seconds
......@@ -23,12 +23,11 @@ aspect NTA {
// E ::= ... /<NT7:long>/ ... ;
syn long E.getNT7() = 1l;
// there are not Opt-NTAs like /[NT8:A]/ /[A]/
// // E ::= ... /[NT8:A]/ ... ;
// syn Opt<A> E.getNT8() = new Opt<A>();
//
// // E ::= ... /[A]/ ... ;
// syn Opt<A> E.getA() = new Opt<A>();
// E ::= ... /[NT8:A]/ ... ;
syn Opt<A> E.getNT8Opt() = new Opt<A>();
// E ::= ... /[A]/ ... ;
syn Opt<A> E.getAOpt() = new Opt<A>();
// E ::= ... /NT10:A*/ ... ;
syn List<A> E.getNT10List() = new List<A>();
......
......@@ -49,11 +49,10 @@ C ;
D ::= SingleA:A ListOfA:A* [OptionalA:A] /NTAA:A/ ;
// production with tokens, nonterminal-tokens, multi-line
// there are not Opt-NTAs like /[NT8:A]/ /[A]/
E ::= <T1> <T2:String> <T3:boolean> <T4:int> <T5:float> <T6:double> <T7:long>
<T8:java.lang.Object> <T9:ArrayList<String>> <T10:java.util.ArrayList<java.lang.String>>
/<NT1>/ /<NT2:String>/ /<NT3:boolean>/ /<NT4:int>/ /<NT5:float>/ /<NT6:double>/ /<NT7:long>/
/NT10:A*/ /B*/;
/[NT8:A]/ /[A]/ /NT10:A*/ /B*/;
rel E.R1 -> A ;
// inheritance and empty
......
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