/*
 * --- GSMP-COPYRIGHT-NOTE-BEGIN ---
 * 
 * This copyright note is auto-generated by ./scripts/Create-CopyPatch.
 * Please add additional copyright information _after_ the line containing
 * the GSMP-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
 * the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
 * 
 * GSMP: dam/utility/regtester/TestParserActions.h
 * General Sound Manipulation Program is Copyright (C) 2000 - 2004
 *   Valentin Ziegler and René Rebe
 * 
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; version 2. A copy of the GNU General
 * Public License can be found in the file LICENSE.
 * 
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANT-
 * ABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
 * Public License for more details.
 * 
 * --- GSMP-COPYRIGHT-NOTE-END ---
 */
typedef struct declaration_list__ {
  void* object;
} declaration_list;

typedef struct declaration_struct__ {
  void* object;
} declaration_struct;

typedef struct assigment_list__ {
  void* object;
} assigment_list;

typedef struct assigment_struct__ {
  void* object;
} assigment_struct;

typedef struct param_list__ {
  void* object;
} param_list;

typedef struct param_struct__ {
  void* object;
} param_struct;

typedef struct bool_func__ {
  void* object;
} bool_func;

typedef struct int_func__ {
  void* object;
} int_func;

void DefineScopes (param_list params);

void PreludeAppend (const char* txt);
void StartupAppend (const char* txt);
void GlobalInsert (declaration_list decls);
void CreateLocal (const char* id, int count, declaration_list decls, const char* text);
void CreateAction (const char* id, param_list params, bool_func guard, assigment_list post, const char* text);

declaration_list ChainDeclaration (declaration_struct d, declaration_list l);
declaration_list DeclListEnd ();
declaration_struct CreateDeclaration (const char* id, bool_func val, const char* text);

assigment_list ChainAssigment (assigment_struct a, assigment_list l);
assigment_list AssigmentListEnd ();
assigment_struct CreateSimpleAssigment (const char* id, bool_func val, const char* text);
assigment_struct CreateScopedAssigment (const char* scope, const char* id, bool_func val, const char* text);

param_list ChainParameter (param_struct p, param_list l);
param_list ParameterListEnd (param_struct p);
param_struct CreateParameter (const char* type, const char* id);

bool_func BOP_or (bool_func a, bool_func b);
bool_func BOP_xor (bool_func a, bool_func b);
bool_func BOP_and (bool_func a, bool_func b);
bool_func BOP_neg (bool_func f);
bool_func BOP_ref (const char* v);
bool_func BOP_scoped_ref (const char* scope, const char* v);
bool_func BOP_const (int value);

bool_func CMP_le (int_func a, int_func b);
bool_func CMP_ge (int_func a, int_func b);
bool_func CMP_eq (int_func a, int_func b);
bool_func CMP_leq (int_func a, int_func b);
bool_func CMP_geq (int_func a, int_func b);
bool_func CMP_neq (int_func a, int_func b);

int_func IOP_add (int_func a, int_func b);
int_func IOP_sub (int_func a, int_func b);
int_func IOP_mul (int_func a, int_func b);
int_func IOP_div (int_func a, int_func b);
int_func IOP_mod (int_func a, int_func b);
int_func IOP_neg (int_func f);
int_func IOP_const (int value);
int_func IOP_self_id ();
int_func IOP_scoped_id (const char* scope);
