FCSFiles.grab_word
— Methodgrab_word(iter, state, delimiter) -> word, state
Grabs the next word from the iterator iter
. Takes care to handle escaped delimiters specified by delimiter
. Returns a string containing the word and the state of the iterator.
FCSFiles.param_lookup
— MethodLooks for s
in the params
dict.
s
is searched for both as a FCS standard keyword then as a user-defined keyword, with precendence given to the standard keywords. E.g. param_lookup(flowrun, "par")
will look for both "$PAR"
and "PAR"
but return "$PAR"
if it exists, otherwise "PAR"
.
In accordance with the FCS3.0 standard, the search is cas insensitive.
If no match is found, nothing
is returned.
FCSFiles.verify_text
— Methodverify_text(text_mappings) -> Void
Checks that all required keywords are present in the textmapping dictionary returned by `parsetext`