Lines 1-4
Link Here
|
1 |
%pure_parser |
1 |
%pure-parser |
|
|
2 |
%parse-param {naslctxt * parm} |
3 |
%lex-param {naslctxt * parm} |
2 |
%expect 1 |
4 |
%expect 1 |
3 |
%{ |
5 |
%{ |
4 |
/* Nessus Attack Scripting Language version 2 |
6 |
/* Nessus Attack Scripting Language version 2 |
Lines 31-37
Link Here
|
31 |
#include "nasl_lex_ctxt.h" |
33 |
#include "nasl_lex_ctxt.h" |
32 |
#include "nasl_debug.h" |
34 |
#include "nasl_debug.h" |
33 |
|
35 |
|
34 |
static void naslerror(const char *); |
36 |
static void naslerror(naslctxt *, const char *); |
35 |
#define YYERROR_VERBOSE |
37 |
#define YYERROR_VERBOSE |
36 |
%} |
38 |
%} |
37 |
|
39 |
|
Lines 465-472
Link Here
|
465 |
#include <stdio.h> |
467 |
#include <stdio.h> |
466 |
#include <stdlib.h> |
468 |
#include <stdlib.h> |
467 |
|
469 |
|
468 |
static void |
470 |
static void naslerror(naslctxt *parm, const char *s) |
469 |
naslerror(const char *s) |
|
|
470 |
{ |
471 |
{ |
471 |
fputs(s, stderr); |
472 |
fputs(s, stderr); |
472 |
} |
473 |
} |