Changeset 35286 in osm for applications/editors


Ignore:
Timestamp:
2020-01-13T21:45:20+01:00 (5 years ago)
Author:
simon04
Message:

JOSM/comfort0: get rid of recursion

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/comfort0/src/net/simon04/comfort0/level0l/Level0LParser.jj

    r35285 r35286  
    7171    { r.setCoor(new LatLon(Double.parseDouble(lat.image), Double.parseDouble(lon.image))); }
    7272    ( <COMMENT_START> | <H_EOL> )
    73     ( tag(r) )*
     73    ( <D_SPACE> <D_SPACE> tag(r) )*
    7474    { return r; }
    7575}
     
    9393{}
    9494{
    95     LOOKAHEAD(3)
    96     ( way_node(r) way_data(r) ) // TODO avoid recursive call to way_data
    97     |
    98     ( tag(r) )*
     95    (
     96        <D_SPACE> <D_SPACE>
     97        ( way_node(r) | tag(r) )
     98    )*
    9999}
    100100
     
    104104}
    105105{
    106     <D_SPACE> <D_SPACE>
    107106    <ND>
    108107    ( <D_SPACE> )+
     
    118117}
    119118{
    120     <D_SPACE> <D_SPACE>
    121119    k=<IDENT>
    122120    ( <D_SPACE> ) *
Note: See TracChangeset for help on using the changeset viewer.