author | Sebastian Harl <sh@tokkee.org> | |
Fri, 20 Dec 2013 23:19:45 +0000 (00:19 +0100) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Fri, 20 Dec 2013 23:19:45 +0000 (00:19 +0100) | ||
commit | a82bba15a9c033c7d8ebba4269d24f2bdbf34e00 | |
tree | 307a110b5384373c34be73bec041cbf091a857b8 | tree | snapshot |
parent | edba65afec8c547fb6c02346eda68595ce9a5839 | commit | diff |
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.
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 | diff | blob | history | |
src/Makefile.am | diff | blob | history | |
src/tools/sysdb/input.c | [new file with mode: 0644] | blob |
src/tools/sysdb/input.h | [new file with mode: 0644] | blob |
src/tools/sysdb/main.c | diff | blob | history | |
src/tools/sysdb/scanner.l | [new file with mode: 0644] | blob |