view anagram/agcore/config.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.
 *
 * config.h - configuration parameters
 */

#ifndef CONFIG_H
#define CONFIG_H

class AgString;

#define INTEGER_PARAM(name) extern int name
#define STRING_PARAM(name) extern AgString name
#define SWITCH(name) extern int name
#define CAST_PARAM(name) extern int name
#define TOKEN_PARAM(name) extern int name
#define TEXT_PARAM(name) extern AgString name

SWITCH(allow_macros);
SWITCH(auto_init);
SWITCH(auto_resynch);

SWITCH(backtrack);
INTEGER_PARAM(    bottom_margin);
SWITCH(bright_background);

SWITCH(case_sensitive);
STRING_PARAM(compile_command);
SWITCH(const_data);
TEXT_PARAM(context_type);
STRING_PARAM(coverage_file_name);

SWITCH(declare_pcb);
CAST_PARAM(default_input_type);
SWITCH(default_reductions);
CAST_PARAM(default_token_type);
SWITCH(diagnose_errors);
SWITCH(distinguish_lexemes);

STRING_PARAM(edit_command);
SWITCH(enable_mouse);
STRING_PARAM(enum_constant_name);
TOKEN_PARAM(eof_token);
SWITCH(error_frame);
TOKEN_PARAM(error_token);
SWITCH(error_trace);
SWITCH(escape_backslashes);
SWITCH(event_driven);

SWITCH(far_tables);

TOKEN_PARAM(grammar_token);

STRING_PARAM(header_file_name);

SWITCH(input_values);
SWITCH(iso_latin_1);

INTEGER_PARAM(line_length);
SWITCH(       line_numbers);
STRING_PARAM( line_numbers_path);
SWITCH(lines_and_columns);

SWITCH(main_program);
INTEGER_PARAM(max_conflicts);

SWITCH(near_functions);
SWITCH(nest_comments);
SWITCH(no_cr);

SWITCH(old_style);

INTEGER_PARAM(page_length);
STRING_PARAM( parser_file_name);
TEXT_PARAM(parser_name);
CAST_PARAM(parser_stack_alignment);
INTEGER_PARAM(parser_stack_size);
SWITCH(pointer_input);
TEXT_PARAM(pointer_type);
STRING_PARAM(print_file_name);

SWITCH(quick_reference);

SWITCH(reduction_choices);
SWITCH(reentrant_parser);
SWITCH(rule_coverage);

INTEGER_PARAM(tab_spacing);
SWITCH(test_file_binary);
STRING_PARAM( test_file_mask);
SWITCH(test_range);
SWITCH(token_names);
SWITCH(token_names_only);
INTEGER_PARAM( top_margin);
SWITCH(traditional_engine);

INTEGER_PARAM(video_mode);

#undef PARAM
#undef SWITCH
#undef CAST_PARAM
#undef TOKEN_PARAM
#undef TEXT_PARAM


#endif /* CONFIG_H */