Daniel J. Hofmann
|
8a2bd09fd0
|
Adapts all grammars to use expectation parsers without backtracking.
Sequence parsers using `>>` allow for backtracking, expectation parsers
`>` do not. This allows us to properly report the position where parsing
failed, by catching the expectation_failure exception and adapting the
iterator ourselves.
References:
- https://github.com/Project-OSRM/osrm-backend/pull/2188
- https://github.com/Project-OSRM/osrm-backend/issues/2168
- http://www.boost.org/doc/libs/1_55_0/libs/spirit/doc/html/spirit/qi/reference/operator/expect.html
|
2016-04-08 21:03:50 +02:00 |
|
Daniel J. Hofmann
|
def89ac079
|
Conform to v5 spec and support "unlimited" as radiuses value.
Supersedes: https://github.com/Project-OSRM/osrm-backend/pull/2231
Thanks to Michael Krasnyk (@oxidase) for figuring out the reason for the
segfault earlier:
> https://github.com/Project-OSRM/osrm-backend/pull/2231#issuecomment-207114226
|
2016-04-08 21:03:50 +02:00 |
|
Daniel J. Hofmann
|
9bb4a68599
|
Fixes grammar includes and formats them
|
2016-04-08 21:03:50 +02:00 |
|
Michael Krasnyk
|
58ebadd7b3
|
Fix #2173 with a no_trailing_dot_policy
no_trailing_dot_policy rejects parsing exp, exp_n, nan, inf
and rejects parsing a fractional part if detects ".Fmt".
For Fmt = 'j', 's', 'o', 'n':
42.foo rule parses 42.
42.json rule parses 42
42..json rule parses 42.
Reference:
- https://github.com/Project-OSRM/osrm-backend/pull/2222#issuecomment-206206239
|
2016-04-08 21:03:50 +02:00 |
|
Daniel J. Hofmann
|
b25cd6aaf2
|
Moving from references is a bad idea in parameter parsers, too
|
2016-04-08 21:03:50 +02:00 |
|
Moritz Kobitzsch
|
dfd180a292
|
fixing unit tests
|
2016-04-08 11:21:14 +02:00 |
|
Patrick Niklaus
|
a8fc95d4e4
|
Move bearing to public namespace
|
2016-04-05 22:58:32 +02:00 |
|
Daniel J. Hofmann
|
7c30ea32bf
|
Runs scripts/format.sh
|
2016-04-05 22:58:32 +02:00 |
|
Patrick Niklaus
|
58fb633df3
|
Add support for tile plugin
|
2016-04-05 22:58:32 +02:00 |
|
Daniel J. Hofmann
|
7bec75b709
|
Semantic action handler requires passing optional by value and fusion::vector2
|
2016-04-05 22:58:32 +02:00 |
|
Patrick Niklaus
|
56ea24b03b
|
Add tests for bearing parsing
|
2016-04-05 22:58:32 +02:00 |
|
Daniel J. Hofmann
|
c895848061
|
Optional<T> semantic action handler takes T argument
|
2016-04-05 22:58:32 +02:00 |
|
Patrick Niklaus
|
f3e72623e9
|
Add viaroute suport for new API
|
2016-04-05 22:58:32 +02:00 |
|