Merge lp:~danilovesky/workcraft/trunk-bug-1326800 into lp:workcraft

Proposed by Danil Sokolov
Status: Merged
Merged at revision: 507
Proposed branch: lp:~danilovesky/workcraft/trunk-bug-1326800
Merge into: lp:workcraft
Diff against target: 30 lines (+1/-0)
1 file modified
WorkcraftCore/src/org/workcraft/plugins/layout/DotParser.jj (+1/-0)
To merge this branch: bzr merge lp:~danilovesky/workcraft/trunk-bug-1326800
Reviewer Review Type Date Requested Status
Danil Sokolov Approve
Review via email: mp+222210@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Danil Sokolov (danilovesky) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'WorkcraftCore/src/org/workcraft/plugins/layout/DotParser.jj'
2--- WorkcraftCore/src/org/workcraft/plugins/layout/DotParser.jj 2010-10-06 15:51:01 +0000
3+++ WorkcraftCore/src/org/workcraft/plugins/layout/DotParser.jj 2014-06-05 15:01:31 +0000
4@@ -46,6 +46,7 @@
5 | <NAME: (["_","A"-"Z","a"-"z","0"-"9"])+>
6 | <INTEGER: (["0"-"9"])+>
7 | <QUOTED: "\""(~["\""] | "\\\"")*"\"" >
8+ | <NUMERAL: (["-"])?("."(["0"-"9"])+ | (["0"-"9"])+ ("."(["0"-"9"])*)?)>
9 }
10
11 String id() :
12{
13 Token t;
14}
15{
16@@ -56,7 +57,9 @@
17 | t = "digraph"
18 | t = "node"
19 | t = "edge"
20- | t = < NAME >
21 )
22 {
23 return t.image;
24 }
25}
26+ | t = < NAME >
27+ | t = < NUMERAL >
28 )
29 {
30 return t.image;
31 }
32+}
33
34 void graph(DotListener listener) :
35 {
36}
37@@ -102,4 +105,4 @@
38 {
39 ("graph"|"node"|"edge") attr_list()
40 }
41
42-void statement(DotListener listener) :
43{
44 Token name;
45 Map < String, String > prop;
46 String i, j;
47}
48{
49 (
50 attr_statement()
51 | i = id()
52 (
53 prop = attr_list()
54 {
55 listener.node(i, prop);
56 }
57 | "->" j = id() prop = attr_list()
58 {
59 listener.arc(i, j, prop);
60 }
61 )
62 )
63 ";"
64}
65\ No newline at end of file
66+void statement(DotListener listener) :
67{
68 Token name;
69 Map < String, String > prop;
70 String i, j;
71}
72{
73 (
74 attr_statement()
75 | i = id()
76 (
77 prop = attr_list()
78 {
79 listener.node(i, prop);
80 }
81 | "->" j = id() prop = attr_list()
82 {
83 listener.arc(i, j, prop);
84 }
85 )
86 )
87 ";"
88}
89\ No newline at end of file

Subscribers

People subscribed via source and target branches