phrep

Timeline
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

18 check-ins occurring on or before 2015-02-21 17:44:04.

2015-02-21
17:44
Test a few more expressions, probe for correct #define parsing. And add a simple self-test for on(). check-in: bdfa825b72 user: mario tags: trunk
17:42
Fix absent STDERR const when PHP runs within shell pipes. Simplify $preserve pragma states and overrides. Inherit ->$defines in MacroInjector per parameter. Skip T_CONST in token search corectly. Cache complex@ macro PHP functions. Add support for quoted #var interpolation in basic macros. check-in: 7083e8568e user: mario tags: trunk
17:38
Add config file support (XDG_CONFIG_HOME or ~/.config/php/phrep.php) with implicit/accidential --config option to override its path. check-in: e354e7c98d user: mario tags: trunk
2015-02-20
16:05
Tinkered macro.php from hybrid7 repo in. check-in: 4fbcb420ac user: mario tags: trunk, 0.1.8
16:01
Trivial tests, and result checks. check-in: 24a48d56f6 user: mario tags: trunk
16:00
Example includes. check-in: 07048f6bb9 user: mario tags: trunk
15:59
Add command-line tool, man page (AsciiDoc src) and Makefile. check-in: c9bfd96b8a user: mario tags: trunk
15:58
Retain only macro.php check-in: d3ab081323 user: mario tags: trunk
15:57
Remove hybrid7 files. check-in: 3962ece5e0 user: mario tags: trunk
15:57
Remove hybrid7 files. check-in: 11b5b685fc user: mario tags: trunk
15:34
Introduce `preserve` pragma/state to retain file/line/output between includes. Add complex macro construction code. Safeguard basic macros against absent args. Recheck valid function names in MacroExpressions. check-in: 40155129df user: mario
2015-02-19
12:48
Introduce #srcout preprocessor directive for conditional source output. Split out MacroInjector functionality from MacroProcessor. Add `keep_empty` and `quiet` pragmas. Allow more spacing in MACRO(arg, list) declarations. Support ## varname concatenation in basic macros. Light reshuffling of operator precedence and operand polling for || and &&. Use proper namespace structuring for merging with `phrep.php` cmdline wrapper. check-in: a41bba31c8 user: mario
2015-02-18
16:27
Fix RX_DIRECTIVES multi-line string extraction, and strip <kbd>\\ NL</kbd> combo. Colorize stderr() messages, prepare for quiet mode. Split d_pragma() handler into value copying and p_hooks() callbacks. check-in: c32a30469b user: mario
2015-02-17
23:35
New #pragma options (dirs=/include:/path, omit=*.h, comments=1, macros=1, fail=0). Longer introduction comment. More regexps moved into const RX_* section. check-in: 5216d6be55 user: mario
19:05
Externalize some common macros into `defaults.ph`. (Bundle into separate repository..) Add #pragma(interpolate=regex) substitution names ("erb" and "phpp") and optional delimiters via #pragma(interpolate=regex ##( )##). Start tracking parsed line numbers. Safeguard #include against most commented-out PHP include(); statements. Shortcut find_include for absolute paths. Join tokenizer macro searching and replacement for basic+complex macros, inject [T_FUNC_C, $repl, 0] instead of literal into token stream. Add MacroExpression shortcuts for "0" and "1" literals. Fix expr->run operand order for GT/LT/E comparisions. check-in: 3a12ba3743 user: mario
14:32
Fix p_stderr callback and RX_DIRECTIVES alternative list. Change to weird variable name $ΒΆ instead of $state (maybe rename flags to lvl,act,end later). check-in: acded28fdd user: mario
07:09
Implement tokenizer and regex constant/macro replacement (incomplete). Fix condition block nesting level tracking. Rename main func to `on()`. Implement #include searching and omitting .h output. Change collected macro definitions to contain pre-parsed param names. check-in: bcf53d2741 user: mario
2015-02-16
20:16
Basic version, #directive preprocessing, and basic expression evaluation. No tokenization and constant / macro interpolation yet. check-in: 9dea381ebc user: mario