Skip to content

Commit

Permalink
Задача 11. Поправил грамматику и пример (нет нуля)
Browse files Browse the repository at this point in the history
  • Loading branch information
gsvgit authored Apr 28, 2024
1 parent c2c7592 commit a06e1f8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tasks/task11.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ select = v_filter? v_filter? 'return' VAR (',' VAR)? 'where' VAR 'reachable' 'fr
v_filter = 'for' VAR 'in' expr
VAR = [a..z]+[a..z 0..1]*
VAR = [a..z]+[a..z 0..9]*
NUM = [1..9]+[0..9]*
CHAR = '"' [a..z] '"'
Expand All @@ -45,15 +45,15 @@ let g is graph
add edge (1, "a", 2) to g
add edge (2, "a", 3) to g
add edge (3, "a", 1) to g
add edge (1, "c", 0) to g
add edge (0, "b", 4) to g
add edge (4, "b", 0) to g
add edge (1, "c", 5) to g
add edge (5, "b", 4) to g
add edge (4, "b", 5) to g
let q = "a"^[1..3] . q . "b"^[2..3] | "c"
let r1 = for v in [2] return u where u reachable from v in g by q
add edge (0, "d", 5) to g
add edge (5, "d", 6) to g
let r2 = for v in [2,3] return u,v where u reachable from v in g by (q . "d")
Expand Down

0 comments on commit a06e1f8

Please sign in to comment.