If one uses a multiline string to define (even parts of) a configuration in Python such as
"""lmc=landmark_cost_partitioning(lm_merged(
[lm_rhw(),lm_hm(m=1)]))"""
the Fast Downward parser fails to parse it on Windows:
Traceback:
Start Syntactical Parsing: [[([[lm_rhw(),lm_hm ...
-> Identify node type: [[([[lm_rhw(),lm_hm ...
-> Parsing List: [[([[lm_rhw(),lm_hm ...
-> Parsing list arguments: [([[lm_rhw(),lm_hm( ...
-> Parsing sequence: [([[lm_rhw(),lm_hm( ...
-> Parsing 1. argument: [([[lm_rhw(),lm_hm( ...
-> Identify node type: [([[lm_rhw(),lm_hm( ...
-> Parsing List: [([[lm_rhw(),lm_hm( ...
-> Parsing list arguments: ([[lm_rhw(),lm_hm(m ...
-> Parsing sequence: ([[lm_rhw(),lm_hm(m ...
-> Parsing 1. argument: ([[lm_rhw(),lm_hm(m ...
-> Identify node type: ([[lm_rhw(),lm_hm(m ...
[[([[lm_rhw(),lm_hm(m=1)])),astar(lmc,lazy_evaluator=lmc))
^
Unexpected token '<Type: '(', Value: '('>'. Expected any of the following token types: Let, Identifier, Boolean, Integer, Float, [
Usage error occurred.
My guess is that we need to explicitly handle Windows line breaks.
|