Class MapCSSParser

  • All Implemented Interfaces:
    MapCSSParserConstants

    public class MapCSSParser
    extends java.lang.Object
    implements MapCSSParserConstants
    MapCSS parser. Contains two independent grammars: (a) the preprocessor and (b) the main mapcss parser. The preprocessor handles @supports syntax. Basically this allows to write one style for different versions of JOSM (or different editors). When the @supports condition is not fulfilled, it should simply skip over the whole section and not attempt to parse the possibly unknown grammar. It preserves whitespace and comments, in order to keep the line and column numbers in the error messages correct for the second pass.