diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-01-05 16:43:22 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-01-05 16:43:22 +0200 |
commit | 719556e44c041a1b65b3fd32e7d6d19154b93b9b (patch) | |
tree | 5add769dd6bbb436d4d1efd8215ed97068a0c0aa | |
parent | ad2f77faead53027af0d82aa45131036a63dc898 (diff) |
Sketch bit stealing interface for regex line_char
-rw-r--r-- | build2/test/script/regex | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/build2/test/script/regex b/build2/test/script/regex index 9a70030..7dacfee 100644 --- a/build2/test/script/regex +++ b/build2/test/script/regex @@ -57,6 +57,26 @@ namespace build2 struct line_char { + /* + private: + size_t data_; + + // Steal two bits from the pointer (need to static assert). + // + public: + line_type + type () const; + + int + special () const; // Stored as (shifted) int16. + + const char_string* + literal () const; + + const char_regex* + regex () const; + */ + line_type type; union |