Google Summer of Code/2016/AcceptedProjects/Vespucci

From OpenStreetMap Wiki
Jump to: navigation, search

This page documents my GSoC 2016 project to create a MapCSS parser for Vespucci compatible with JOSM MapCSS files.

May 23 - June 5

I have spend the 2 first week  on improving my knowledge about android sdk, java-cc parser generator and about JOSM MapCSS implementation.

June 6 - June 12

I have start working  on implement a simple lexical analyzer with a few MapCSSrules out of the box.

Each MapCSS rules has two parts:

  • One or more selector, used to determine to which map elements the statement applies.
  • One or more declaration, used to determine the style which should be applied to matching elements.

So i will use this parsing algorithm :

- for each rule: if the selector applies, set the properties from the { } block in a list.

- analyze the final list of properties and generate styles from it.

This week i have work on parsing the MapCSS declaration, that determine the style of each matching elements.

June 13 - June 19

I work on a first draft of the main MapCSS parser grammar.

I made some test with the MapCSS selector, used to determine to which map elements the statement applies.