~ubuntu-branches/ubuntu/vivid/cctools/vivid

« back to all changes in this revision

Viewing changes to ftsh/src/parser.h

  • Committer: Bazaar Package Importer
  • Author(s): Michael Hanke
  • Date: 2011-05-07 09:05:00 UTC
  • Revision ID: james.westby@ubuntu.com-20110507090500-lqpmdtwndor6e7os
Tags: upstream-3.3.2
ImportĀ upstreamĀ versionĀ 3.3.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
Copyright (C) 2003-2004 Douglas Thain and the University of Wisconsin
 
3
Copyright (C) 2005- The University of Notre Dame
 
4
This software is distributed under the GNU General Public License.
 
5
See the file COPYING for details.
 
6
*/
 
7
 
 
8
#ifndef PARSER_H
 
9
#define PARSER_H
 
10
 
 
11
#include "ast.h"
 
12
#include <stdio.h>
 
13
 
 
14
union yystype {
 
15
        struct ast_group *group;
 
16
        struct ast_command *command;
 
17
        struct ast_function *function;
 
18
        struct ast_conditional *conditional;
 
19
        struct ast_try *try;
 
20
        struct ast_try_limit *try_limit;
 
21
        struct ast_whileloop *whileloop;
 
22
        struct ast_forloop *forloop;
 
23
        struct ast_shift *shift;
 
24
        struct ast_return *rtn;
 
25
        struct ast_assign *assign;
 
26
        struct ast_simple *simple;
 
27
        struct ast_redirect *redirect;
 
28
        struct ast_word *word;
 
29
        struct ast_token token;
 
30
        struct expr *expr;
 
31
        int number;
 
32
};
 
33
 
 
34
#define YYSTYPE union yystype
 
35
 
 
36
struct ast_group * parse_file( FILE *file, int do_debug );
 
37
 
 
38
#endif