#OK, so far there are the following rules implemented: # RULE STANDARD: X sometext=#* Y # where a space means 1+ spaces # # (if present) is a number that indicates the priority of the rule # (default = 0; default for ties is for earlier rules to go first) # * (if present) means "do this inside HTML tags, too." # (if it is not there, the thing defaults to ONLY OUTSIDE HTML TAGS) # With X c0 Y c1 Z, put the #* after c0 (the first command character) #### # REPLACE: X = Y # search for X, replace with Y # CONTEXT-INSENSITIVE REPLACE: X CI= Y # search for X case-insensitively, replace with Y # BOOLEAN REPLACE: X c0 Y c1 Z # Search for X; if case = 0, replace with Y, if case = 1, replace with Z # case starts at 0, and every time you find X, case changes after the replace # FILE INCLUDE: X include= Y # This will replace the Chunk X with the contents of the file Y. # ######NEW (VARIABLE-RELATED) RULES: # # VARIABLE (generic): X V= Z Implemented: 7/7 Added to 7/15 # -When you get X"--"Y"--", you set variable Z to value Y # -When you get X"++"Y"++", you add Y to value Z! # -When you get X, you replace it with the value of Z!! # # #WHAT IF --"Y"-- APPEAR ON 2 DIFFERENT BLOCKS!! BAD! # # VARIABLE APPEND: X Vapp= Z Implemented: 7/8 # When you get X"--"Y"--", you APPEND value Y to variable Z # # To print out a Vapp, do like the following in the rules file: # chunk1 Vapp= Variable_bob \ in rules file # chunk2 V= Variable_bob / # # Thus, you'd write to the variable with: # # chunk1--Write1-- \ # chunk1--Write2-- | In pre-processed file # And output it with: | # chunk2 / # # Then, if you apply the rules to the pre-processed you get: # # "Write1Write2" # #########NEWER RULES (7/13+) # # DMZ: X dmz= Y Implemented: 7/13 # When you see X, we start DMZ. When you see Y, we stop DMZ. # DMZ means 'don't apply any rules between these tags.' # You must close the DMZ tag for it to take effect. # #######