diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2012-11-07 20:43:33 +0100 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2012-11-07 20:43:33 +0100 |
commit | ad939b95eb95c7511a371ef7d806ad9bb26453ae (patch) | |
tree | 372ff7ea4bbd4b8d06c3054bf3a4da5aea1b1560 /parser.cpp | |
parent | 581e39ac203056633a627ad09167adf05753e091 (diff) | |
download | sciteco-ad939b95eb95c7511a371ef7d806ad9bb26453ae.tar.gz |
add helper function to initialize transition table
Diffstat (limited to 'parser.cpp')
-rw-r--r-- | parser.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -80,11 +80,8 @@ State::get_next_state(gchar chr) StateStart::StateStart() : State() { - transitions['\0'] = this; - transitions[' '] = this; - transitions['\r'] = this; - transitions['\n'] = this; - transitions['\v'] = this; + transitions['\0'] = this; + init(" \r\n\v"); } void |