Code

sysdb: Implemented input scanner and simple command handling.
authorSebastian Harl <sh@tokkee.org>
Thu, 9 Jan 2014 06:47:46 +0000 (07:47 +0100)
committerSebastian Harl <sh@tokkee.org>
Thu, 9 Jan 2014 06:47:46 +0000 (07:47 +0100)
commita006a526f16e790dbeae6ef96ed61f506310b66f
tree2e0db7f90989fb3fe2b8d3f7546670d2c320deb3
parentbc2e98d50f275471345c749e4d951a309a7f14a7
sysdb: Implemented input scanner and simple command handling.

Reused the frontend parser lexer to identify single queries (terminated by
semicolon). No other parsing of the command is done by the client to make the
frontend the ultimate truth in regard to the parser (including simple stuff
like comments).

The query is then sent to the daemon and the reply will be printed to the
standard output channel.
src/Makefile.am
src/tools/sysdb/command.c [new file with mode: 0644]
src/tools/sysdb/command.h [new file with mode: 0644]
src/tools/sysdb/input.c
src/tools/sysdb/input.h
src/tools/sysdb/main.c
src/tools/sysdb/scanner.l