File: parse.c

package info (click to toggle)
filtergen 0.12.8-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,924 kB
  • sloc: sh: 5,485; ansic: 4,268; yacc: 692; lex: 362; makefile: 165
file content (19 lines) | stat: -rw-r--r-- 360 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <stdlib.h>
#include "ast.h"

extern char *yytext;
int yyparse(void *);
extern int yydebug;

int main(int argc __attribute__((unused)),
         char **argv __attribute__((unused))) {
  char *YYDEBUGTRACE;
  struct ast_s ast;

  YYDEBUGTRACE = getenv("YYDEBUGTRACE");
  yydebug = YYDEBUGTRACE ? atoi(YYDEBUGTRACE) : 0;

  yyparse(&ast);

  return 0;
}