Skip to content

Commit

Permalink
first global example
Browse files Browse the repository at this point in the history
  • Loading branch information
smolkaj committed Jul 26, 2016
1 parent bc55778 commit c61796c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/meta-fields/global/meta-global1.kat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
let meta := 1 in
if meta = 1 then 1@1=>2@2 else 1@1=>3@3
3 changes: 3 additions & 0 deletions lib/Frenetic_NetKAT_Compiler.ml
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,9 @@ module Pol = struct
|> mk_filter
in
mk_big_seq [filter_loc s1 p1; Dup; post_link ]
| Let (metaid, Const v, _, p) ->
Seq (Mod (Meta (metaid, v)), of_pol ing p)
| Let _ -> failwith "not implemented"
| VLink _ -> assert false (* SJS / JNF *)
end

Expand Down

0 comments on commit c61796c

Please sign in to comment.