summary refs log tree commit diff stats
path: root/compiler/main.nim
Commit message (Expand)AuthorAgeFilesLines
...
| * fixed some closure related bugsAraq2013-01-221-1/+3
| * allow 'cast' for the JS targetAraq2013-01-091-1/+1
| * Copyright 2012 -> 2013Araq2013-01-081-1/+1
| * next steps for FFI at compile timeAraq2013-01-021-1/+0
| * bug
/*
 * (C)opyright MMVI Anselm R. Garbe <garbeam at gmail dot com>
 * See LICENSE file for license details.
 */

#define TAGS \
const char *tags[] = { "work", "net", "fnord", NULL };

#define DEFMODE			dotile /* dofloat */
#define DEFTAG			0 /* index */
#define FONT			"-*-terminus-medium-*-*-*-12-*-*-*-*-*-iso10646-*"
#define BGCOLOR			"#eeeeee"
#define FGCOLOR			"#666699"
#define BORDERCOLOR		"#9999CC"
#define MODKEY			Mod1Mask
#define NUMLOCKMASK		Mod2Mask
#define MASTERW			60 /* percent */

#define KEYS \
static Key key[] = { \
	/* modifier		key		function	arguments */ \
	{ MODKEY,		XK_1,		view,		{ .i = 0 } }, \
	{ MODKEY,		XK_2,		view,		{ .i = 1 } }, \
	{ MODKEY,		XK_3,		view,		{ .i = 2 } }, \
	{ MODKEY,		XK_h,		viewprev,	{ 0 } }, \
	{ MODKEY,		XK_j,		focusnext,	{ 0 } }, \
	{ MODKEY,		XK_k,		focusprev,	{ 0 } }, \
	{ MODKEY,		XK_l,		viewnext,	{ 0 } }, \
	{ MODKEY,		XK_m,		togglemax,	{ 0 } }, \
	{ MODKEY,		XK_p,		spawn, \
		{ .cmd = "exec `ls -lL /usr/bin /usr/local/bin 2>/dev/null | " \
			"awk 'NF>2 && $1 ~ /^[^d].*x/ {print $NF}' | sort | uniq | dmenu`" } }, \
	{ MODKEY,		XK_space,	togglemode,	{ 0 } }, \
	{ MODKEY,		XK_Return,	zoom,		{ 0 } }, \
	{ MODKEY|ControlMask,	XK_1,		appendtag,	{ .i = 0 } }, \
	{ MODKEY|ControlMask,	XK_2,		appendtag,	{ .i = 1 } }, \
	{ MODKEY|ControlMask,	XK_3,		appendtag,	{ .i = 2 } }, \
	{ MODKEY|ShiftMask,	XK_1,		replacetag,	{ .i = 0 } }, \
	{ MODKEY|ShiftMask,	XK_2,		replacetag,	{ .i = 1 } }, \
	{ MODKEY|ShiftMask,	XK_3,		replacetag,	{ .i = 2 } }, \
	{ MODKEY|ShiftMask,	XK_c,		killclient,	{ 0 } }, \
	{ MODKEY|ShiftMask,	XK_q,		quit,		{ 0 } }, \
	{ MODKEY|ShiftMask,	XK_Return,	spawn, \
		{ .cmd = "exec uxterm -bg '#dddddd' -fg '#000000' -cr '#000000' +sb " \
			"-fn '-*-terminus-medium-*-*-*-12-*-*-*-*-*-iso10646-*'" } }, \
};

#define RULES \
static Rule rule[] = { \
	/* class:instance regex		tags regex	isfloat */ \
	{ "Firefox.*",			"net",		False }, \
	{ "Gimp.*",			NULL,		True}, \
	{ "MPlayer.*",			NULL,		True}, \
	{ "Acroread.*",			NULL,		True}, \
};
231-1/+14 * extracted documentation generatorAraq2012-05-091-1/+5 * year 2012 for most copyright headersAraq2012-01-021-1/+1 * path canonicalization for imported modules, relative paths written in rod filesZahary Karadjov2011-12-111-1/+1 * path canonicalization and proper project relative pathsZahary Karadjov2011-12-091-1/+1 * Speed-up symbolFiles:on operations on windowsZahary Karadjov2011-12-071-12/+10 * bugfixes for .rod files and visual C++Araq2011-12-031-1/+1 * cleaned up configuration file handling and documented the new behaviourAraq2011-11-301-10/+10 * argument passing with --run option works againAraq2011-11-271-2/+2 * New algorithm for locating and loading nimrod config files.Zahary Karadjov2011-11-251-78/+79 * compilation cache: multi methods now workAraq2011-10-241-0/+1 * compilation cache: better dependency checkingAraq2011-10-231-0/+1 * much more efficient rod file generationAraq2011-10-181-25/+17 * added system.slurp for easy embedding of resourcesAraq2011-08-101-2/+4 * json code generation works againAraq2011-08-071-1/+1 * support for C++ code generation; importcpp and importobjc pragmasAraq2011-08-071-2/+2 * lexer, parser cleanup; boehm gc for mac os xAraq2011-05-171-3/+3 * const table supportAraq2011-04-291-2/+2 * got rid of some arcane module namesAraq2011-04-211-1/+1 * better error message for invalid module namesAraq2011-04-161-1/+1 * big repo cleanupAraq2011-04-121-0/+279