Package net.sf.laja.parser.engine2.source

Examples of net.sf.laja.parser.engine2.source.Source


        conditionElement.add(468, conditionElement_1);
        conditionElement.add(469, s);
        OrList conditionElement_2 = new OrList(470, "conditionElement_2");
        conditionElement_2.add(471, comparition);
        ElementList conditionElement_2_1 = new ElementList(472, "conditionElement_2_1");
        AndList conditionElement_2_1_1 = new AndList(473, "conditionElement_2_1_1");
        conditionElement_2_1_1.mainAnd(474, reference);
        ElementList conditionElement_2_1_1_1 = new ElementList(475, "conditionElement_2_1_1_1");
        conditionElement_2_1_1_1.add(476, booleanData, NOT);
        conditionElement_2_1_1_1.add(478, new Complete(477, "conditionElement_2_1_1_1"));
        conditionElement_2_1_1.and(479, conditionElement_2_1_1_1);
        conditionElement_2_1.add(480, conditionElement_2_1_1);
        conditionElement_2.add(481, conditionElement_2_1);
        conditionElement_2.add(482, booleanData);
        conditionElement.add(483, conditionElement_2);
View Full Code Here


        // val = valstmt [s 92 s valstmt:followedby]
        val.add(239, valstmt, valValValstmt);
        Optional val_1 = new Optional(240, "val_1");
        val_1.add(241, s);
        val_1.add(243, new Chr(242, (char)92));
        val_1.add(244, s);
        val_1.add(245, valstmt, valValFollowedby);
        val.add(246, val_1);

        // def = lname:var s "=" s val s ";"
View Full Code Here

        // val = valstmt [s 92 s valstmt:followedby]
        val.add(239, valstmt);
        Optional val_1 = new Optional(240, "val_1");
        val_1.add(241, s);
        val_1.add(243, new Chr(242, (char)92));
        val_1.add(244, s);
        val_1.add(245, valstmt);
        val.add(246, val_1);

        // def = lname:var s "=" s val s ";"
View Full Code Here

        Optional behaviour_4_1_2 = new Optional(277, "behaviour_4_1_2");
        behaviour_4_1_2.add(278, behaviourMethod);
        behaviour_4_1.add(279, behaviour_4_1_2);
        behaviour_4.add(280, behaviour_4_1);
        behaviour.add(281, behaviour_4);
        behaviour.add(283, new Complete(282, "behaviour"));

        return new TopElement(data2, behaviour);
    }
View Full Code Here

        Optional behaviour_4_1_2 = new Optional(277, "behaviour_4_1_2");
        behaviour_4_1_2.add(278, behaviourMethod);
        behaviour_4_1.add(279, behaviour_4_1_2);
        behaviour_4.add(280, behaviour_4_1);
        behaviour.add(281, behaviour_4);
        behaviour.add(283, new Complete(282, "behaviour"));

        return new TopElement(data1, behaviour);
    }
View Full Code Here

        constructor_1.add(13, constructorComment);
        constructor.add(14, constructor_1);
        OrList constructor_2 = new OrList(15, "constructor_2");
        ElementList constructor_2_1 = new ElementList(16, "constructor_2_1");
        constructor_2_1.add(17, constructorCodeBlock);
        constructor_2_1.add(19, new Complete(18, "constructor_2_1", constructorConstructorLastPart));
        constructor_2.add(20, constructor_2_1);
        ElementList constructor_2_2 = new ElementList(21, "constructor_2_2", constructorConstructorLastPart);
        constructor_2_2.add(23, new Marker(22, "endCodeBlock"));
        constructor_2_2.add(25, new Complete(24, "constructor_2_2"));
        constructor_2.add(26, constructor_2_2);
        constructor.add(27, constructor_2);

        return new TopElement(data2, constructor);
    }
View Full Code Here

        constructor_1.add(13, constructorComment);
        constructor.add(14, constructor_1);
        OrList constructor_2 = new OrList(15, "constructor_2");
        ElementList constructor_2_1 = new ElementList(16, "constructor_2_1");
        constructor_2_1.add(17, constructorCodeBlock);
        constructor_2_1.add(19, new Complete(18, "constructor_2_1"));
        constructor_2.add(20, constructor_2_1);
        ElementList constructor_2_2 = new ElementList(21, "constructor_2_2");
        constructor_2_2.add(23, new Marker(22, "endCodeBlock"));
        constructor_2_2.add(25, new Complete(24, "constructor_2_2"));
        constructor_2.add(26, constructor_2_2);
        constructor.add(27, constructor_2);

        return new TopElement(data1, constructor);
    }
View Full Code Here

        ElementList conditionElement_2_1 = new ElementList(472, "conditionElement_2_1");
        AndList conditionElement_2_1_1 = new AndList(473, "conditionElement_2_1_1");
        conditionElement_2_1_1.mainAnd(474, reference, conditionElementConditionElementReference);
        ElementList conditionElement_2_1_1_1 = new ElementList(475, "conditionElement_2_1_1_1");
        conditionElement_2_1_1_1.add(476, booleanData, NOT, conditionElementConditionElementBooleanData);
        conditionElement_2_1_1_1.add(478, new Complete(477, "conditionElement_2_1_1_1"));
        conditionElement_2_1_1.and(479, conditionElement_2_1_1_1);
        conditionElement_2_1.add(480, conditionElement_2_1_1);
        conditionElement_2.add(481, conditionElement_2_1);
        conditionElement_2.add(482, booleanData, conditionElementConditionElementBooleanCondition);
        conditionElement.add(483, conditionElement_2);
View Full Code Here

        ElementList conditionElement_2_1 = new ElementList(472, "conditionElement_2_1");
        AndList conditionElement_2_1_1 = new AndList(473, "conditionElement_2_1_1");
        conditionElement_2_1_1.mainAnd(474, reference);
        ElementList conditionElement_2_1_1_1 = new ElementList(475, "conditionElement_2_1_1_1");
        conditionElement_2_1_1_1.add(476, booleanData, NOT);
        conditionElement_2_1_1_1.add(478, new Complete(477, "conditionElement_2_1_1_1"));
        conditionElement_2_1_1.and(479, conditionElement_2_1_1_1);
        conditionElement_2_1.add(480, conditionElement_2_1_1);
        conditionElement_2.add(481, conditionElement_2_1);
        conditionElement_2.add(482, booleanData);
        conditionElement.add(483, conditionElement_2);
View Full Code Here

    Str cd = new Str(10, "cd");
    Repeat ar = new Repeat(11, "ar");
    Repeat br = new Repeat(12, "br");
    Repeat dr = new Repeat(13, "dr");
    Repeat er = new Repeat(14, "er");
    ElementList t111 = new ElementList(15, "t111");
    ElementList t112 = new ElementList(16, "t112");
    Repeat t113 = new Repeat(17, "t113");
    ElementList t114 = new ElementList(18, "t114");
    ElementList t121 = new ElementList(19, "t121");
    ElementList t122 = new ElementList(20, "t122");
    Repeat t123 = new Repeat(21, "t123");
    ElementList t124 = new ElementList(22, "t124");
    ElementList t131 = new ElementList(23, "t131", NOT, testcaseT131X);
    ElementList t132 = new ElementList(24, "t132", NOT, testcaseT132X);
    Repeat t133 = new Repeat(25, "t133", NOT, testcaseT133X);
    ElementList t134 = new ElementList(26, "t134", NOT, testcaseT134X);
    ElementList t141 = new ElementList(27, "t141");
    Repeat t142 = new Repeat(28, "t142");
    ElementList t143 = new ElementList(29, "t143");
    Repeat t144 = new Repeat(30, "t144");
    Optional t151 = new Optional(31, "t151");
    ElementList t152 = new ElementList(32, "t152");
    Optional t153 = new Optional(33, "t153");
    ElementList t154 = new ElementList(34, "t154");
    Optional t161 = new Optional(35, "t161");
    ElementList t162 = new ElementList(36, "t162");
    Optional t163 = new Optional(37, "t163");
    ElementList t164 = new ElementList(38, "t164");
    Optional t165 = new Optional(39, "t165", testcaseT165X);
    ElementList t211 = new ElementList(40, "t211");
    ElementList t212 = new ElementList(41, "t212");
    Optional t213 = new Optional(42, "t213");
    Optional t214 = new Optional(43, "t214");
    Repeat t311 = new Repeat(44, "t311", new net.sf.laja.parser.engine2.Repeats(3));
    Repeat t312 = new Repeat(45, "t312", new net.sf.laja.parser.engine2.Repeats(3,5));
    ElementList t313a = new ElementList(46, "t313a");
    Repeat t313 = new Repeat(47, "t313", new net.sf.laja.parser.engine2.Repeats(2));
    ElementList t411 = new ElementList(48, "t411");
    Repeat t511a = new Repeat(49, "t511a");
    ElementList t511 = new ElementList(50, "t511");
    ElementList t512 = new ElementList(51, "t512");
    ElementList testcase = new ElementList(52, "testcase");

    // cr = ("\r" ["\n"]) | "\n"
    ElementList cr_1 = new ElementList(53, "cr_1");
    cr_1.add(55, new Str(54, "\r"));
    Optional cr_1_1 = new Optional(56, "cr_1_1");
    cr_1_1.add(58, new Str(57, "\n"));
    cr_1.add(59, cr_1_1);
    cr.add(60, cr_1);
    cr.add(62, new Str(61, "\n"));

    // comment = ("/*" [!"*/"+] "*/") | ("//" [!(cr|END)+] cr|END)
    ElementList comment_1 = new ElementList(63, "comment_1");
    comment_1.add(65, new Str(64, "/*"));
    Optional comment_1_1 = new Optional(66, "comment_1_1");
    Repeat comment_1_1_1 = new Repeat(67, "comment_1_1_1");
    comment_1_1_1.add(69, new Str(68, "*/", NOT));
    comment_1_1.add(70, comment_1_1_1);
    comment_1.add(71, comment_1_1);
    comment_1.add(73, new Str(72, "*/"));
    comment.add(74, comment_1);
    ElementList comment_2 = new ElementList(75, "comment_2");
    comment_2.add(77, new Str(76, "//"));
    Optional comment_2_1 = new Optional(78, "comment_2_1");
    Repeat comment_2_1_1 = new Repeat(79, "comment_2_1_1");
    OrList comment_2_1_1_1 = new OrList(80, "comment_2_1_1_1");
    comment_2_1_1_1.add(81, cr);
    comment_2_1_1_1.add(83, new End(82, "comment_2_1_1_1"));
    comment_2_1_1.add(84, comment_2_1_1_1, NOT);
    comment_2_1.add(85, comment_2_1_1);
    comment_2.add(86, comment_2_1);
    OrList comment_2_2 = new OrList(87, "comment_2_2");
    comment_2_2.add(88, cr);
    comment_2_2.add(90, new End(89, "comment_2_2"));
    comment_2.add(91, comment_2_2);
    comment.add(92, comment_2);

    // ws = (cr | " " | "\t" | comment)+
    OrList ws_1 = new OrList(93, "ws_1");
    ws_1.add(94, cr);
    ws_1.add(96, new Str(95, " "));
    ws_1.add(98, new Str(97, "\t"));
    ws_1.add(99, comment);
    ws.add(100, ws_1);

    // s = [ws]
    s.add(101, ws);

    // a = "a"

    // b = "b"

    // c = "c"

    // d = "d"

    // ab = "ab"

    // cd = "cd"

    // ar = "a"+
    ar.add(103, new Str(102, "a"));

    // br = "b"+
    br.add(105, new Str(104, "b"));

    // dr = "d"+
    dr.add(107, new Str(106, "d"));

    // er = "e"+
    er.add(109, new Str(108, "e"));

    // t111 = ab
    t111.add(110, ab, testcaseT111Ab);

    // t112 = !ab
    t112.add(111, ab, NOT, testcaseT112Ab);

    // t113 = ab+
    t113.add(112, ab, testcaseT113Ab);

    // t114 = !ab:notab+ ab
    Repeat t114_1 = new Repeat(113, "t114_1");
    t114_1.add(114, ab, NOT, testcaseT114Notab);
    t114.add(115, t114_1);
    t114.add(116, ab);

    // t121 = (ab)
    t121.add(117, ab, testcaseT121Ab);

    // t122 = (!ab)
    t122.add(118, ab, NOT, testcaseT122Ab);

    // t123 = (ab+)
    t123.add(119, ab, testcaseT123Ab);

    // t124 = (!ab:notab+) ab
    Repeat t124_1 = new Repeat(120, "t124_1");
    t124_1.add(121, ab, NOT, testcaseT124Notab);
    t124.add(122, t124_1);
    t124.add(123, ab);

    // t131 = !(ab):x
    t131.add(124, ab, testcaseT131Ab);

    // t132 = !(!a):x
    t132.add(125, a, NOT, testcaseT132A);

    // t133 = !(ab+):x
    t133.add(126, ab);

    // t134 = !(!a+):x
    Repeat t134_1 = new Repeat(127, "t134_1");
    t134_1.add(128, a, NOT);
    t134.add(129, t134_1);

    // t141 = !(ab:notab):x+ ab
    Repeat t141_1 = new Repeat(130, "t141_1");
    ElementList t141_1_1 = new ElementList(131, "t141_1_1");
    t141_1_1.add(132, ab, testcaseT141Notab);
    t141_1.add(133, t141_1_1, NOT, testcaseT141X);
    t141.add(134, t141_1);
    t141.add(135, ab, testcaseT141Ab);

    // t142 = !(!a):x+
    ElementList t142_1 = new ElementList(136, "t142_1");
    t142_1.add(137, a, NOT, testcaseT142A);
    t142.add(138, t142_1, NOT, testcaseT142X);

    // t143 = !(ab:notab+):x+ ab
    Repeat t143_1 = new Repeat(139, "t143_1");
    Repeat t143_1_1 = new Repeat(140, "t143_1_1");
View Full Code Here

TOP

Related Classes of net.sf.laja.parser.engine2.source.Source

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.