phrep

Update of "config-file"
Login

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

Overview

Artifact ID: 0c5f6475d06978398d3ea93ff02f0a5cb6638708
Page Name:config-file
Date: 2015-04-28 22:16:25
Original User: mario
Mimetype:text/x-markdown
Parent: ed46edcb1afd477f7048e89dcfed2b933f74da63 (diff)
Content

phrep can have a "config" file.

Probed locations:

Purpose:

Usage:

Example .config/phrep/config.php

Primary purpose of the config file is defining macro helper functions, which is easier for development than multi-line macro #define statements.

There's eventually going to be a convenience method $proc->addMacro() for this. And anonymous functions may be bound once the internal $proc->defines structure is settled (or complicated).

Registering constants/macros is easier btw. per $proc->d_define("NAME(x)=2*x") anyway.

To utilize a distributed config script, use phrep --config ./defines.php for example. Albeit it's likely more practical to prepare them into plain include (e.g. .ph) files.

Further .config/phrep/*.php includes

The default config include just loads further *.php scripts alongside itself. So just drop other examples/ into ~/.config/phrep/.