#define YY_EXTRA_TYPE lex_t*
/* Read from buffer */
-#define YY_INPUT(rgb,result,cbMax) \
- { if (cbMax > yyextra->cbInput) cbMax = yyextra->cbInput; \
- memcpy (rgb, yyextra->rgbInput, cbMax); \
- yyextra->cbInput -= cbMax; yyextra->rgbInput += cbMax; \
- result = cbMax ? cbMax : YY_NULL; }
+#define YY_INPUT(buf,result,max_size) \
+ { yyextra->input(buf, &result, max_size); }
//#define YY_DECL static size_t yylex ()
"""
The C-based Parser for Bitbake
"""
- def __init__(self, data):
+ def __init__(self, data, type):
"""
Constructor
"""
"""
pass
+ def _assign(self, key, value):
+ """
+ """
+ pass
+
def _append(self, key, value):
"""
VAR += "MOO"
%extra_argument {lex_t* lex}
%include {
-#include "standard.h"
+#include "token.h"
}
void* (*parse)(void*, int, token_t, lex_t*);
void accept(int token, const char* string = 0);
+ void input(char *buf, int *result, int_max_size);
int line()const;
const char* filename()const;
private: