#include grammar.gpp
#mode comment "//" "\n"
// this file defines the "precomp" grammar, the grammar
// that's used to process C code templates
// vim: ft=c
#define call_start "["
#define call_end "]"
#define arg_start " "
#define arg_sep ",\\w"
#define arg_end "]"
#define bal_stack "\(["
#define bal_unstack "\)]"
#define arg_num_char "\\$"
#define quote_char "|"
#define meta_start "\\w["
#define meta_end "]\\w"
#define meta_arg_start " "
#define meta_sep "\\w:\\w"
#define meta_arg_end "]\\W"
add(unix_lf)
add(comment "---" "\\n")
add(comment "(*" "*)")
flag(exec)
mode(user, user_grammar)
mode(meta, meta_grammar)