🔥 keyword and keypattern functions
Just make strings have higher precedence than regexps.
This commit is contained in:
parent
80ec303b10
commit
a19b0e75ac
9 changed files with 6963 additions and 6923 deletions
|
|
@ -21,8 +21,6 @@ rule_ptr seq(const std::vector<rule_ptr> &);
|
|||
rule_ptr sym(const std::string &);
|
||||
rule_ptr pattern(const std::string &);
|
||||
rule_ptr str(const std::string &);
|
||||
rule_ptr keyword(const std::string &);
|
||||
rule_ptr keypattern(const std::string &);
|
||||
rule_ptr err(const rule_ptr &);
|
||||
rule_ptr left_assoc(int precedence, const rule_ptr &);
|
||||
rule_ptr right_assoc(int precedence, const rule_ptr &);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue