view anagram/agcore/rpk.h @ 24:a4899cdfc2d6 default tip

Obfuscate the regexps to strip off the IBM compiler's copyright banners. I don't want bots scanning github to think they're real copyright notices because that could cause real problems.
author David A. Holland
date Mon, 13 Jun 2022 00:40:23 -0400
parents 13d2b8934445
children
line wrap: on
line source

/*
 * AnaGram, A System for Syntax Directed Programming
 * Copyright 1993-2002 Parsifal Software. All Rights Reserved.
 * See the file COPYING for license and usage terms.
 *
 * rpk.h
 */

#ifndef RPK_H
#define RPK_H

class CharSetExpression; // from csexp.h
class Procedure; // from rule.h
class RuleElement; // from rule.h
class Token; // from token.h
#include "agstack.h"


extern AgStack< AgStack<RuleElement> > ruleElementStack;

void  defineImmediateProc(Procedure p);
int   form_element_1(CharSetExpression *);
int   form1(void);
void  gen_vp_prods(int tn, int zl, int vptn);
int   id_token(int);
int   makeRule(void);
int   makeRule(Token);
int   makeRule(Token token1, Token token2);
int   makeRule(const AgIndexedContainer<RuleElement> &elementList);
void  shell_production(int,int);
int   vp_1(void);
int   vp_2(void);
int   vp_4(void);
int   vp_6(int);
int   vp_7(int);
int   vp_form3(int);
void  vp_forms(void);
void  warning_here(const char *, ...) PRINTFFY(1,2);

#endif /* RPK_H */