Piotr Winter

Results 27 comments of Piotr Winter

Hi Because regex_term accepts auto& as template argument it needs a static linkage object. If at some point ctpg will support c++20 some form of string_literal class could be accepted,...

Well, I tink there are, I don't think you can initialize parser using {} initializer with 4 arguments. It is not a trivially initalized class, you have to use a...

Cool! Can I suggest not to call nonterms 'non terminal terms' ? Terms is short for 'terminal symbols' and nonterms is short for 'non terminal symbols'. Non terminal terms makes...

You are welcome! You can prepare a PR with this if you want. Name it string_view_buffer though.

What about gcc? Is it really somthing the standard added in c++20? Declaring == operator as a member was a common thing, this would break a lot of code. Can...

But I'm not using default comparisons here. These are just custom comparisons. Why would a compiler generate a comparison operator for me if I'm explicitly definig one. It looks like...

There is no official standalone lexer feature. There is a way, but I'm not convinced it should be official in its current state. If you want you can look under...

Or did I just completely misunderstood you and you want to just use the regex lexer without the actual parser? In this case you are out of luck. You could...

I guess I could do a standalone lexer feature, it shouldn't be too hard to expose some interface for that. Like you said I already am creating a DFA from...