boost_spirit::rule<Scanner>,
boost_spirit::rule<Scanner> >
{
- boost_spirit::rule<Scanner> command, path, argument, word, string, hexstring, token,
- punctuation, hexbyte, balanced_tokens, simple_argument, complex_argument, builtin,
- skip, statement, relpath, abspath, arguments, group_start, group_close,
- statement_end, opt_path;
+ boost_spirit::rule<Scanner> command, path, argument, word, string, hexstring,
+ word_or_string, token, punctuation, hexbyte, balanced_tokens, simple_argument,
+ complex_argument, builtin, skip, statement, relpath, abspath, arguments,
+ group_start, group_close, statement_end, opt_path;
definition(CommandGrammar const & self)
{
;
relpath
- = ( word [ push_back(path_, token_) ]
+ = ( word_or_string [ push_back(path_, token_) ]
% +ch_p('/') )
>> ( ! (+ch_p('/') ) [ push_back(path_, construct_<Token>()) ] )
;
pos_) ]
;
+ word_or_string
+ = word
+ | string
+ ;
+
hexbyte
= uint_parser<char, 16, 2, 2>()
[ push_back(str_, arg1) ]