- the readList<T>(Istream&) function was introduced to handle command
-options with either a single or a list value, but was also used for
the #remove dictionary directive. However, the parsing was fragile
if the list did not start with a '('.
Now handle command-line arg/option list directly (via ITstream)
and #remove with special-purpose reading of a string or word list.
This removes ambiguity and reduces potential future problems.
STYLE: use ITstream instead of IStringStream for command-line lookups
- parses directly to a tokenList without a string copy.
31 lines
1.3 KiB
Plaintext
31 lines
1.3 KiB
Plaintext
| directive | context | content | line oriented?
|
|
|-------------------|-------------------|-------------------|-----------------
|
|
#inputMode | dict | word
|
|
#default | dict | entry introducer
|
|
#merge | dict | entry introducer
|
|
#overwrite | dict | entry introducer
|
|
#warn | dict | entry introducer
|
|
#error | dict | entry introducer
|
|
| |
|
|
#remove | dict | keyType or List<keyType>
|
|
| |
|
|
#include | dict/primitive | string
|
|
#includeEtc | dict/primitive | string
|
|
#includeIfPresent | dict/primitive | string
|
|
#includeFunc | dict | word
|
|
| |
|
|
#calc | dict/primitive | string
|
|
#codeStream | dict/primitive | dictionary
|
|
|
|
|
|
Pending future extensions
|
|
|
|
| directive | context | content | line oriented?
|
|
|-------------------|-------------------|-------------------|-----------------
|
|
#define | dict | entry introducer
|
|
#local | dict | entry introducer
|
|
#undef | dict | keyType or List<keyType>
|
|
|
|
|
|
2017-11-26
|