You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are currently two ambiguities that remain in the grammar.
SYMBOL can in some cases be used as a composite type, and sometimes as an attribute. E.g.
SYMBOL
NAME "circle"
TYPE ellipse
FILLED true
POINTS
1 1
END
END
And sometimes it can be used as a simple keyword / value pair e.g.
SYMBOL "symbol_name
SYMBOL 0 # reference a symbol from a SYMBOLSET
Everything currently works fine for cases such as:
SYMBOL"barb_warm"
But in cases without quotes, such as the following, fail:
SYMBOL barb_warm
Not sure if anything can be done about this. If not then these will always need to be quoted.
There is a test for this in test_snippets.py - test_symbol_style2().
A possible solution is to have an unquoted string type, a KEYWORD type which only accepts letters (case-insensitive)
for attribute names, and a more permissive type that accepts underscores, numbers, and hyphens that could
be used for attribute values.
STYLE - this is typically a class such as:
STYLE
SYMBOL 'hatch-test'
COLOR 255 0 0
ANGLE [MYROTATE]
SIZE 4.0
WIDTH 3.0
END
However it is also used in a two other classes as an attribute e.g. in a SCALEBAR and in a QUERYMAP. E.g.
SCALEBAR
STYLE 0
END
The text was updated successfully, but these errors were encountered:
There are currently two ambiguities that remain in the grammar.
And sometimes it can be used as a simple keyword / value pair e.g.
Everything currently works fine for cases such as:
SYMBOL"barb_warm"
But in cases without quotes, such as the following, fail:
SYMBOL barb_warm
Not sure if anything can be done about this. If not then these will always need to be quoted.
There is a test for this in test_snippets.py - test_symbol_style2().
A possible solution is to have an unquoted string type, a KEYWORD type which only accepts letters (case-insensitive)
for attribute names, and a more permissive type that accepts underscores, numbers, and hyphens that could
be used for attribute values.
However it is also used in a two other classes as an attribute e.g. in a SCALEBAR and in a QUERYMAP. E.g.
The text was updated successfully, but these errors were encountered: