-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add dev docs and prepare transpiler module
- Loading branch information
Showing
9 changed files
with
82 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
BEFORE = """ | ||
---context:global | ||
assign validForBikes = true | ||
assign processUnusedTags = false # %processUnusedTags% | Set true to output unused tags in data tab | boolean | ||
---context:way | ||
""" | ||
|
||
AFTER = """ | ||
---context:node # following code refers to node tags | ||
assign defaultaccess = | ||
if ( access= ) then true | ||
else if ( access=private|no ) then false | ||
else true | ||
assign bike_access = | ||
if nodeaccessgranted=yes then true | ||
else if bicycle= then | ||
( | ||
if vehicle= then defaultaccess | ||
else not vehicle=private|no | ||
) | ||
else not bicycle=private|no|dismount | ||
assign footaccess = | ||
if bicycle=dismount then true | ||
else if foot= then defaultaccess | ||
else not foot=private|no | ||
assign initialcost = | ||
if bike_access then 0 | ||
else ( if footaccess then 10 else 1000000 ) | ||
""" | ||
|
||
|
||
def transpile(): | ||
pass | ||
|
||
|
||
if __name__ == "__main__": | ||
transpile() |