Code

sysdb: Use the flex scanner generator for reading input.
authorSebastian Harl <sh@tokkee.org>
Fri, 20 Dec 2013 23:19:45 +0000 (00:19 +0100)
committerSebastian Harl <sh@tokkee.org>
Fri, 20 Dec 2013 23:19:45 +0000 (00:19 +0100)
commita82bba15a9c033c7d8ebba4269d24f2bdbf34e00
tree307a110b5384373c34be73bec041cbf091a857b8
parentedba65afec8c547fb6c02346eda68595ce9a5839
sysdb: Use the flex scanner generator for reading input.

The idea is to implement a minimalistic parser which understands all valid
input and which is used to determine if an input line is part of an existing
command or a command on its own. This information will then be used to update
the prompt (and possibly to determine other information as well).

The scanner's YY_INPUT "method" is overwritten in order to use readline and
custom buffering for user input.
.gitignore
src/Makefile.am
src/tools/sysdb/input.c [new file with mode: 0644]
src/tools/sysdb/input.h [new file with mode: 0644]
src/tools/sysdb/main.c
src/tools/sysdb/scanner.l [new file with mode: 0644]