Jeff Trull
7a8e9d3884
Introduce c++23 feature flag and condition size_t literals with it
2025-10-27 09:29:33 -07:00
Jeff Trull
2408633f16
Tweak PR #241 for correctness and tidy code
...
- Fix RE2C code for numbers (binary and digit separators)
- Revert to RE2C version 1.0.2, for now
- Revamp token ids to minimize changes
- Restore existing and more accurate name OPTSIGN in slex
- Add binary literal support to lexertl
- Fix xlex support for size_t literals
- Add test tokens for octal, binary, and hex literals
2025-10-27 09:29:33 -07:00
Andreas Pokorny
50b322dcc9
fix(lexer): support size_t literal, separator chars, 'module'
...
The integer parsing grammars still have to be updated.
2025-10-27 09:29:33 -07:00
Jeff Trull
83cb264b5f
Use constexpr instead of macros for tokenid constants in samples ( #167 )
...
Under Visual Studio 2019 (and possibly 2017), building with /permissive- causes three samples to fail to compile. Adding the /Zc:twoPhase- option makes them compile successfully again. See bug #160 for more details.
It's unclear what the source of this issue is, but using constexpr variables instead of a macro is better practice anyway, and fixes the errors.
2022-06-22 17:35:44 -07:00
Jeff Trull
9382ac9e8b
MSVC-related cleanups ( #150 )
...
* Replace several sprintf's with boost::format or std::to_string
* Clean up MSVC builds by removing pre-C++11 toolsets
* Update build badges
2022-02-20 17:54:26 -08:00
Jeff Trull
0ff9eafa04
Add the spaceship <=> operator to the C++20 tokens
2020-10-24 22:01:43 -07:00
Jeff Trull
200f91e71d
Introduce C++20 tokens
2020-08-11 13:17:01 -07:00
Jeff Trull
35fc5aa381
Add C++11 token support to all lexers
...
Support was already in slex, though it wasn't covered by the token
test. This updates the tests while adding virtually identical code
to lexertl and xlex.
2020-08-10 04:47:04 -07:00
Jeff Trull
2e8eeeeb4d
Add BOOST_OVERRIDE to virtual functions in derived classes ( #89 )
2020-04-13 21:12:34 -07:00
Jeff Trull
b68940a83b
Disallow mixed-case long long integer literals ( #80 )
...
- Update all four lexers to allow ll/LL but not lL/Ll
- Add unit tests for checking
- Remove invalid token from test
2020-03-15 22:54:01 -07:00
Jeff Trull
750e0cb68c
Repair lexertl lexer and add to test suite ( #78 )
...
- Update DFA index code to reflect newer Spirit versions
- Update corresponding static lexer, adding explanatory comments
- Incorporate lexertl into test framework
2020-03-13 12:24:49 -07:00
Jeff Trull
5efdff6766
Merge branch 'develop' into bugfix/include-next
2020-02-09 21:44:05 -08:00
Jeff Trull
9413a718f6
tighten up effect of SUPPORT_INCLUDE_NEXT
2020-02-09 15:05:19 -08:00
Jeff Trull
a9cf9c4757
Replace deprecated iterator trait with new name
2020-02-09 14:03:37 -08:00
Hartmut Kaiser
20d4dd1f81
Fixing #1
2017-09-02 10:02:53 -05:00
Joel de Guzman
d0e1fa9164
Applied patches for Tickets #7738 , #7737 and #7646
...
[SVN r82348]
2013-01-04 01:43:06 +00:00
Hartmut Kaiser
bbcad7c954
Wave: updating copyrights, fixing issues introduced by latest changes to multi_pass.
...
[SVN r58714]
2010-01-05 17:29:06 +00:00
Hartmut Kaiser
16f44b7502
Wave: adjustments for recent multi_pass changes
...
[SVN r54222]
2009-06-22 19:46:11 +00:00
Hartmut Kaiser
122915b95f
Wave: fixed examples
...
[SVN r53192]
2009-05-22 23:40:53 +00:00
Ben Hanson
21b3deb904
Use data() accessor on state_machine.
...
[SVN r52193]
2009-04-05 13:08:34 +00:00
Hartmut Kaiser
a8e6b580db
Wave: Updated copyrights
...
[SVN r50425]
2009-01-01 12:07:12 +00:00
Hartmut Kaiser
6bc791d255
Wave: Started to fox examples
...
[SVN r49301]
2008-10-13 01:03:32 +00:00
Hartmut Kaiser
23bbed3024
Wave: updated copyright messages to include the year 2008 (merged from release branch).
...
[SVN r42502]
2008-01-05 22:44:28 +00:00
Hartmut Kaiser
4f47b2c781
Wave: Untabified files.
...
[SVN r37065]
2007-02-25 17:45:00 +00:00
Hartmut Kaiser
ce6efaed9e
Untabified file.
...
[SVN r37059]
2007-02-25 00:55:37 +00:00
Hartmut Kaiser
b379b3292a
Added the possibility to use static pre-compiled DFA tables for the lexertl based lexer.
...
[SVN r37058]
2007-02-25 00:47:11 +00:00
Hartmut Kaiser
5f1fd76a92
Wave: Untabified file.
...
[SVN r37007]
2007-02-19 19:32:25 +00:00
Hartmut Kaiser
eaadaaac0f
Fixed a wrong #include directive.
...
[SVN r36861]
2007-01-31 15:00:01 +00:00
Hartmut Kaiser
8c711a8fd1
Wave: updated for newest lexertl version.
...
[SVN r36785]
2007-01-25 16:09:36 +00:00
Hartmut Kaiser
1a87a383ba
Wave: updated lexertl based lexer for newest version of the lexertl library.
...
[SVN r36764]
2007-01-20 23:27:16 +00:00
Hartmut Kaiser
dc8846cbf5
Added pragma option values push and pop to the options line, preserve and output.
...
[SVN r36698]
2007-01-12 02:04:19 +00:00
Hartmut Kaiser
3cf132c4d0
Wave: Extended the copyright notice to include the year 2007.
...
[SVN r36469]
2006-12-20 16:58:16 +00:00
Hartmut Kaiser
172f83d4b9
Wave: untabified file.
...
[SVN r36313]
2006-12-10 18:54:40 +00:00
Hartmut Kaiser
bc3b1dc040
Wave: Added load save of DFA tables to lexertl lexer.
...
[SVN r36289]
2006-12-07 16:24:26 +00:00
Hartmut Kaiser
eb5bd7fa89
Wave: completed first version of the lexertl based lexer.
...
[SVN r36238]
2006-12-02 03:06:31 +00:00
Hartmut Kaiser
bdfb4ec8e8
Wave: Updated lexertl lexer.
...
[SVN r36218]
2006-11-30 23:34:52 +00:00
Hartmut Kaiser
cf842fc02e
Fixed compilation error.
...
[SVN r36215]
2006-11-30 17:00:56 +00:00
Hartmut Kaiser
9a56d46717
Added the support_option_insert_whitespace language option.
...
[SVN r36211]
2006-11-30 13:22:39 +00:00
Hartmut Kaiser
c36c1eaa32
Wave: Updated the lexertl lexer. Still problems with the lexertl lib.
...
[SVN r36198]
2006-11-29 14:14:40 +00:00
Hartmut Kaiser
ca2f06c3da
Untabified file.
...
[SVN r36181]
2006-11-26 23:35:58 +00:00
Hartmut Kaiser
26563d403c
Changed the list_includes sample to use a lexer which is based on the lexertl library written by Ben Hanson ( http://www.benhanson.net/lexertl.html ).
...
[SVN r36170]
2006-11-23 22:24:03 +00:00