Remove interactive help from core selection parser
authorTeemu Murtola <teemu.murtola@gmail.com>
Fri, 14 Mar 2014 18:19:55 +0000 (20:19 +0200)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Tue, 18 Mar 2014 08:50:12 +0000 (09:50 +0100)
commit54f62781653c56ce01a7a16a993177a4010e74b6
tree825eeb43ae20e2a9df4516cd24d606fee1f43e32
parent6f957f147b4ce3a1c8130536a6c85b63749d8553
Remove interactive help from core selection parser

The help is now handled in the loop that processes user input, and it
never gets into the parser itself.  This removes several special cases
from the parser and simplifies it.

Add a few string utilities and tests for them to make it easy to handle
the help commands.

Change-Id: Ida58bccd3b9ced4b7060485cc2f064b73796c996
14 files changed:
src/gromacs/selection/parser.cpp
src/gromacs/selection/parser.h
src/gromacs/selection/parser.y
src/gromacs/selection/parsetree.cpp
src/gromacs/selection/parsetree.h
src/gromacs/selection/scanner.cpp
src/gromacs/selection/scanner.l
src/gromacs/selection/scanner_flex.h
src/gromacs/selection/selectioncollection.cpp
src/gromacs/selection/symrec.cpp
src/gromacs/selection/tests/selectioncollection.cpp
src/gromacs/utility/stringutil.cpp
src/gromacs/utility/stringutil.h
src/gromacs/utility/tests/stringutil.cpp