>>100202879
>quoted strings
I can agree to that. Quoted string + non significant whitespace by default would be nice, like in perl6's regexes.
>>100202915
so your major problem is syntax and no semantics?
imo you haven't use them enough, it becomes intuitive after a while. you must use the extended syntax though it makes a night and day difference, like here >>100202042
I don't agree with you about an alternate syntax using if keywords because then literally 80% of the letters would be if-s or and-s because that's what regex, parsing and logic DSL do. It's a shit loads of IF, AND and OR and JUMP (for quantifiers). There is no point in writing IF because every single regex subexpression except is capturing groups is a conditional and thise conditionals are all ANDed together. Quantifiers are loops so they also contain a conditional just like C for/while loops contain a conditional if you look at the assembly.
Here's what it looks like with IFs everywhere (ANDs are implicit)
/^ab(c|d)$/
bool match_pattern(char *input, size_t length) {
char *ptr = input;
char *end = input + lenght;
Comment too long. Click here to view the full text.