Mercurial > ~dholland > hg > ag > index.cgi
comparison anagram/agcore/bpu.h @ 0:13d2b8934445
Import AnaGram (near-)release tree into Mercurial.
author | David A. Holland |
---|---|
date | Sat, 22 Dec 2007 17:52:45 -0500 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:13d2b8934445 |
---|---|
1 /* | |
2 * AnaGram, A System for Syntax Directed Programming | |
3 * Copyright 1993-1999 Parsifal Software. All Rights Reserved. | |
4 * See the file COPYING for license and usage terms. | |
5 * | |
6 * bpu.h - Utility routines for bpe3 | |
7 */ | |
8 | |
9 #ifndef BPU_H | |
10 #define BPU_H | |
11 | |
12 #include "port.h" // for PRINTFFY | |
13 | |
14 class AgString;// from agstring.h | |
15 class Rule; // from rule.h | |
16 class Token; // from token.h | |
17 | |
18 | |
19 void count_pe_line(const char *s, int k); | |
20 void define_macro(const char *, const char *, ...) PRINTFFY(2,3); | |
21 void define_macro_default(const char *, const char *, ...) PRINTFFY(2,3); | |
22 int find_completions(int s, const unsigned **q); | |
23 void find_key_tokens(const int *, int, int/* , int*/); | |
24 unsigned find_token_number(const char *); | |
25 unsigned char *key_string(int tn); | |
26 Rule ruleReducedBy(Token, unsigned sn); | |
27 void select_actions(int); | |
28 void select_write_fragment(const char *, const char *, const char *); | |
29 int shift_token(unsigned, unsigned); | |
30 AgString subs_template(const char *, const char *, const char); | |
31 void template_string(const char *, const char *, const char); | |
32 int wpe(const char *fs, ...) PRINTFFY(1,2); | |
33 int wps(const char *s); | |
34 int wss(void); | |
35 | |
36 void write_code_segment(const char *name); | |
37 AgString code_segment(const char *name); | |
38 | |
39 #endif /* BPU_H */ |