ToruNiina
5dbbc1fb1a
add escaped newline to lexer for multiline string
...
to use it in parse_ml_basic_string
2018-12-06 19:53:49 +09:00
ToruNiina
b3b5682cc0
add message to bad_unwrap
2018-12-06 17:15:19 +09:00
ToruNiina
df314da751
change error message considering context
...
combinators are used with other parser-combinators. in such cases, empty
input means `not enough character`.
2018-12-06 17:03:57 +09:00
ToruNiina
3d1783e12a
Merge 'types' into combinator
2018-12-06 16:06:25 +09:00
ToruNiina
f8aa604959
Merge branch 'result' into combinator
...
- fix some of the constructors of result
- add some utility member functions to boost
2018-12-06 12:57:58 +09:00
ToruNiina
e3f6805629
add conversion members to result
2018-12-06 12:47:14 +09:00
ToruNiina
1dddc6e26c
add missing std::move for ctors
2018-12-06 12:46:32 +09:00
ToruNiina
5e052237ba
add alias for snake_case types
2018-12-06 01:20:11 +09:00
ToruNiina
a995bd515b
Merge branch 'master' into combinator
...
split typedefs from value.hpp
2018-12-05 21:42:14 +09:00
ToruNiina
00619c1c85
Merge branch 'types'; split typedefs from value
2018-12-05 21:41:22 +09:00
ToruNiina
532457345c
split type definitions from value.hpp
2018-12-05 20:55:25 +09:00
ToruNiina
f9a018b5ea
add source_name to test_lex_aux macros
2018-12-05 17:19:37 +09:00
ToruNiina
aa05858de3
add source_name to location/region to show filename
...
now error message prints the filename
2018-12-05 16:55:31 +09:00
ToruNiina
2b3c8887d6
add comment to confusing implementation
2018-12-04 22:17:20 +09:00
ToruNiina
932a0646ce
force clamping character code in [0,256)
2018-12-04 21:58:47 +09:00
ToruNiina
c3a2cd8c1e
use hexcode instead of u8 string on windows
2018-12-04 21:43:43 +09:00
ToruNiina
c0ce5a2d7d
remove debug message from test code
2018-12-04 21:00:34 +09:00
ToruNiina
c3e1f68ef6
add u8 to the front of UTF-8 string literal
...
explicitly set the character encoding for them, for compatibility
2018-12-04 20:59:44 +09:00
ToruNiina
1a2fa6d53a
add test for lexers
2018-12-04 20:30:21 +09:00
ToruNiina
17f3d96766
add lexers
2018-12-04 20:29:59 +09:00
ToruNiina
1f564ec047
add combinators to scan content
2018-12-04 20:29:39 +09:00
ToruNiina
679e282e23
make variables in region/location read-only
...
to avoid modifying mistakenly
2018-12-03 00:10:26 +09:00
ToruNiina
59588e3a10
add static_assert and useful member funcs
2018-12-02 23:22:27 +09:00
ToruNiina
f83a8b450e
add concat_to_string to utility for error messges
2018-12-02 23:05:15 +09:00
ToruNiina
8bf97d8a00
add constructors that receive range to region
2018-12-02 23:04:49 +09:00
ToruNiina
2ee8ffab21
add begin/end to region
2018-12-02 21:54:39 +09:00
ToruNiina
9c1bfbd5eb
make region::source immutable
2018-12-02 21:03:08 +09:00
ToruNiina
c38b9b7dc7
add region and location to represent tokens
...
location is almost same as an Iterator, but having shared_ptr that points
the content. region is almost same as a range. by adding pointer to the
content source, utility function to show the error message can be
implemented easier. it is expected that this also makes easy to show
error messages after parse (e.g., in the case of bad_get)
2018-12-02 20:52:04 +09:00
ToruNiina
4791088106
Merge branch 'result' into combinator
2018-12-02 18:30:39 +09:00
ToruNiina
b53d11ce79
ci: downgrade test modules, use BOOST_CHECK
...
Because travis.CI installs old, out-of-date version of Boost,
BOOST_TEST is not supported. we need to use BOOST_CHECK to link
with it.
2018-12-02 18:25:09 +09:00
ToruNiina
00c3c2f773
Merge branch 'result' into combinator
2018-12-02 18:15:58 +09:00
ToruNiina
6c0a12148b
add result<T, E> struct to handle errors
...
aiming later updates and refactoring of parsers
2018-12-02 18:01:37 +09:00
ToruNiina
a32ccd82f3
fix UB in test_value (use after move)
2018-10-22 19:00:16 +09:00
ToruNiina
f326334147
add definition of constexpr static value to avoid linker error
2018-07-08 18:58:38 +09:00
ToruNiina
b1a55b1331
simplify SFINAE in to_toml
2018-05-05 13:09:40 +09:00
ToruNiina
170b0d6b3f
use constexpr value instead of call constexpr func directory
2018-05-05 12:06:06 +09:00
ToruNiina
433636a06f
simplify the implementation of from_toml
2018-05-05 11:59:34 +09:00
ToruNiina
9555817901
add get<pair>, get<tuple>
2018-05-05 11:46:09 +09:00
ToruNiina
e54deacf1a
simplify SFINAE expressions in toml::get
2018-05-05 11:42:11 +09:00
ToruNiina
b6f53cae7a
update test_traits
...
now is_container returns false when map-like class is passed
2018-05-05 11:40:13 +09:00
ToruNiina
f953a9cf23
add conjunction, disjunction, negation, index_seq
2018-05-05 11:37:18 +09:00
ToruNiina
117549bf70
change is_(map|container) and remove needless trait
2018-05-05 11:36:47 +09:00
ToruNiina
4287160254
add a badge
2018-03-28 19:21:17 +09:00
ToruNiina
53c87ae80e
add contributors section
2018-03-28 19:14:29 +09:00
ToruNiina
5aeb6f24df
change exception type #8 ; iterator may be invalid
2017-12-24 11:02:32 +09:00
ToruNiina
3f1b431ee2
add missing inline
specifier #7
2017-12-15 21:39:38 +09:00
ToruNiina
7624f95e6d
Merge branch 'get_or' to load default value: #6
2017-12-11 14:55:43 +09:00
ToruNiina
7be9548a6f
fix test_module name
2017-12-11 14:30:25 +09:00
ToruNiina
a9eb291a79
add --output-on-failure to .travis.yml
2017-12-11 12:12:22 +09:00
ToruNiina
f7f356752a
add get_or to README
2017-12-11 12:06:31 +09:00