summary refs log tree commit diff stats
path: root/doc
Commit message (Expand)AuthorAgeFilesLines
...
* Display user specified headers in viewer if presentDaniel Bridges2019-07-171-0/+8
* Add an option to toggle between read and unreadNicolai Dagestad2019-07-171-0/+4
* Add show-headers to aerc-configJeffas2019-07-171-0/+6
* Add MouseEnabled config settingJeffas2019-07-171-0/+5
* Add maildir docsBen Burwell2019-07-123-2/+44
* Support imaps with oauthbearer authentication (Gmail)Frode Aannevik2019-07-111-1/+17
* aerc(1): correct error with :pipe documentationDrew DeVault2019-07-081-0/+2
* Add :exec and :pipe -b(ackground)Drew DeVault2019-07-081-8/+15
* Document message index format specifiersBen Burwell2019-07-041-1/+36
* Add unsubscribe commandBen Burwell2019-07-041-0/+6
* Use "open" instead of "xdg-open" on Darwin systemsBen Burwell2019-07-041-1/+1
* msgview/save: Use defaultSavePath if no path is providedReto Brunner2019-06-252-0/+10
* aerc-config: [viewer] should be [compose]Issam Maghni2019-06-231-1/+1
* Add aerc -v to print the installed versionDrew DeVault2019-06-181-1/+6
* commands/msgview: add open commandRéouven Assouly2019-06-171-0/+4
* Document collecting log outputLyle Hanson2019-06-141-0/+8
* Set empty message in dirlist if no folder exist.Reto Brunner2019-06-141-0/+5
* Support directories in path to :saveClayton Craft2019-06-141-1/+3
* Implement :mkdir commandDrew DeVault2019-06-091-0/+3
* aerc(1): add :read and :unread command to docsDrew DeVault2019-06-091-20/+31
* Add archive commandRobert Günzler2019-06-092-0/+14
* Message list: implement index-format optionYash Srivastav2019-06-071-3/+3
* Update docs per filters rewriteDrew DeVault2019-06-072-11/+7
* Mention aerc-tutorial(7) in aerc(1)ngenisis2019-06-051-2/+3
* add missing column in tableStephen Gregoratto2019-06-031-0/+1
* Update aerc-tutorial(7) to reflect changes to reply bindingsFrancis Dinh2019-06-031-4/+4
* Add :save and :pipe commands to viewerGalen Abell2019-05-271-0/+7
* Document :forward in aerc(1)Drew DeVault2019-05-251-0/+3
* Change ex command to C-x when using terminalDrew DeVault2019-05-241-0/+3
* Fix key value typo in documentationRoshless2019-05-232-2/+2
* Mention custom headers in aerc-tutorial(7)Drew DeVault2019-05-221-1/+3
* Minor fixes to list of filter dependenciesFrancis Dinh2019-05-221-1/+1
* Minor improvements to aerc-tutorialDrew DeVault2019-05-221-7/+4
* Implement opening tutorial after account wizardDrew DeVault2019-05-221-0/+143
* New account wizard, part oneDrew DeVault2019-05-211-3/+4
* Use kebab-case for cred-cmdsDrew DeVault2019-05-211-7/+5
* Implement :pwd commandAmin Bandali2019-05-191-0/+3
* Fix scdoc & gofmt issuesDrew DeVault2019-05-183-18/+18
* Implement loading passwords from external commandsGalen Abell2019-05-183-0/+33
* Add man pagesDrew DeVault2019-05-174-0/+518
12transform?h=hlt&id=5f0e4762468c412d57fb54236a0ee90e23a2cb14'>^
dd2e01e4 ^
363be37f ^
3ba63579 ^

b24eb476 ^
05d17773 ^
b24eb476 ^
05d17773 ^
3ba63579 ^
b24eb476 ^
05d17773 ^
3ba63579 ^





9cc16d04 ^
7f73795c ^
0f125d5f ^

37e4573b ^
a70ce311 ^





1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
                                                                              


                                                                     









                                                                            
 
                             
                      

                                  

                     
                                             



                               

                     




                                                      

                   


                 

                      
                                                             
                                    
                                             
                                          
                                                                                            


                                               
                             
                                                     


                              
                                        
                                                                       
                      


                           
                                                                                            
                                                                                          

                                  
                                                         
                                            
                                                        
                                               
       
                                                     
                                            





                                 
                            
                                   

                                  
 





                                               
//: Phase 2: Filter loaded recipes through an extensible list of 'transforms'.
//:
//: The hope is that this framework of transform tools will provide a
//: deconstructed alternative to conventional compilers.
//:
//: We're going to have many transforms in mu, and getting their order right
//: (not the same as ordering of layers) is a well-known problem. Some tips:
//:   a) Design each layer to rely on as few previous layers as possible.
//:
//:   b) When positioning transforms, try to find the tightest constraint in
//:   each transform relative to previous layers.
//:
//:   c) Even so you'll periodically need to try adjusting each transform
//:   relative to those in previous layers to find a better arrangement.

:(before "End recipe Fields")
int transformed_until;
:(before "End recipe Constructor")
transformed_until = -1;

:(before "End Types")
typedef void (*transform_fn)(recipe_ordinal);

:(before "End Globals")
vector<transform_fn> Transform;

:(after "int main")
  // Begin Transforms
    // Begin Instruction Inserting/Deleting Transforms
    // End Instruction Inserting/Deleting Transforms

    // Begin Instruction Modifying Transforms
    // End Instruction Modifying Transforms
  // End Transforms

  // Begin Checks
  // End Checks

:(code)
void transform_all() {
  trace(9990, "transform") << "=== transform_all()" << end();
//?   cerr << "=== transform_all\n";
  for (int t = 0; t < SIZE(Transform); ++t) {
//?     cerr << "transform " << t << '\n';
    for (map<recipe_ordinal, recipe>::iterator p = Recipe.begin(); p != Recipe.end(); ++p) {
      recipe& r = p->second;
      if (r.steps.empty()) continue;
      if (r.transformed_until != t-1) continue;
      // End Transform Checks
      (*Transform.at(t))(/*recipe_ordinal*/p->first);
      r.transformed_until = t;
    }
  }
//?   cerr << "wrapping up transform\n";
  parse_int_reagents();  // do this after all other transforms have run
  // End transform_all
}

void parse_int_reagents() {
  trace(9991, "transform") << "--- parsing any uninitialized reagents as integers" << end();
  for (map<recipe_ordinal, recipe>::iterator p = Recipe.begin(); p != Recipe.end(); ++p) {
    recipe& r = p->second;
    if (r.steps.empty()) continue;
    for (int index = 0; index < SIZE(r.steps); ++index) {
      instruction& inst = r.steps.at(index);
      for (int i = 0; i < SIZE(inst.ingredients); ++i) {
        populate_value(inst.ingredients.at(i));
      }
      for (int i = 0; i < SIZE(inst.products); ++i) {
        populate_value(inst.products.at(i));
      }
    }
  }
}

void populate_value(reagent& r) {
  if (r.initialized) return;
  // End Reagent-parsing Exceptions
  if (!is_integer(r.name)) return;
  r.set_value(to_integer(r.name));
}

// helper for tests -- temporarily suppress run
void transform(string form) {
  load(form);
  transform_all();
}