mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-09-07 21:07:20 +02:00
Expression reboot
- A3::tokenize recognizes strings, patterns, attr, ops, dates. - A3::tokenize canonicalizes attributes.
This commit is contained in:
parent
3fd83ca400
commit
94dfc68cca
3 changed files with 168 additions and 108 deletions
9
src/A3.h
9
src/A3.h
|
@ -85,6 +85,7 @@ public:
|
|||
|
||||
void categorize ();
|
||||
static bool is_command (const std::vector <std::string>&, std::string&);
|
||||
static const std::vector <std::string> operator_list ();
|
||||
|
||||
void append_stdin ();
|
||||
void rc_override (std::string&, File&);
|
||||
|
@ -102,12 +103,15 @@ public:
|
|||
const A3 extract_modifications () const;
|
||||
const A3 extract_words () const;
|
||||
|
||||
const A3 tokenize (const A3&) const;
|
||||
|
||||
static bool is_attr (Nibbler&, std::string&);
|
||||
static bool is_attribute (const std::string&, std::string&);
|
||||
|
||||
/*
|
||||
static std::vector <std::string> operator_list ();
|
||||
|
||||
|
||||
static bool is_multipart (const std::string&, std::vector <std::string>&);
|
||||
static bool is_attr (const std::string&);
|
||||
static bool is_attmod (const std::string&);
|
||||
static bool is_subst (const std::string&);
|
||||
static bool is_pattern (const std::string&);
|
||||
|
@ -117,7 +121,6 @@ public:
|
|||
static bool is_operator (const std::string&);
|
||||
static bool is_operator (const std::string&, char&, int&, char&);
|
||||
static bool is_symbol_operator (const std::string&);
|
||||
static bool is_attribute (const std::string&, std::string&);
|
||||
static bool is_modifier (const std::string&);
|
||||
static bool is_expression (const std::string&);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue