Skip to content

Commit

Permalink
lex: New lexical analyzer module for use in OVN.
Browse files Browse the repository at this point in the history
I'm determined not to let the terrible style of pseudo-parsing we have in
OVS leak into OVN.  Here's the first step.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Andy Zhou <azhou@nicira.com>
Acked-by: Russell Bryant <rbryant@redhat.com>
  • Loading branch information
blp committed Apr 15, 2015
1 parent 6eceebf commit 10b1662
Show file tree
Hide file tree
Showing 11 changed files with 1,051 additions and 8 deletions.
1 change: 0 additions & 1 deletion Makefile.am
Expand Up @@ -378,4 +378,3 @@ include vtep/automake.mk
include datapath-windows/automake.mk
include datapath-windows/include/automake.mk
include ovn/automake.mk
include ovn/controller/automake.mk
5 changes: 0 additions & 5 deletions ovn/TODO
Expand Up @@ -19,11 +19,6 @@
Probably should be defined so that the data structure is also
useful for references to fields in action parsing.

** Lexical analysis.

Probably should be defined so that the lexer can be reused for
parsing actions.

** Parsing into syntax tree.

** Semantic checking against variable definitions.
Expand Down
3 changes: 3 additions & 0 deletions ovn/automake.mk
Expand Up @@ -127,3 +127,6 @@ ovn_ovn_nbctl_LDADD = ovn/libovn.la ovsdb/libovsdb.la lib/libopenvswitch.la
bin_PROGRAMS += ovn/ovn-nbd
ovn_ovn_nbd_SOURCES = ovn/ovn-nbd.c
ovn_ovn_nbd_LDADD = ovn/libovn.la ovsdb/libovsdb.la lib/libopenvswitch.la

include ovn/controller/automake.mk
include ovn/lib/automake.mk
2 changes: 2 additions & 0 deletions ovn/lib/automake.mk
@@ -0,0 +1,2 @@
lib_LTLIBRARIES += ovn/lib/libovn.la
ovn_lib_libovn_la_SOURCES = ovn/lib/lex.c ovn/lib/lex.h

0 comments on commit 10b1662

Please sign in to comment.