X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=src%2Fread.h;fp=src%2Fread.h;h=2d87835daec0c44fc8ecaa6d7b13977e692ec8e6;hb=8d55156675587a770c5654362bcbd3d2a98e4aa9;hp=0000000000000000000000000000000000000000;hpb=d6e1960007fcac962144382332f7a9c8c56fa3a1;p=muddle-interpreter.git diff --git a/src/read.h b/src/read.h new file mode 100644 index 0000000..2d87835 --- /dev/null +++ b/src/read.h @@ -0,0 +1,35 @@ +/* +Copyright (C) 2017 Keziah Wesley + +You can redistribute and/or modify this file under the terms of the +GNU Affero General Public License as published by the Free Software +Foundation, either version 3 of the License, or (at your option) any +later version. + +This file is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public +License along with this file. If not, see +. +*/ + +#ifndef READ_H +#define READ_H + +#include + +typedef union object object; +typedef struct +{ + object *pos; + uint32_t framelen; + uint32_t _pad; +} reader_stack; + +// TODO: hide this, export higher-level interface +const char *read_token (const char *p, reader_stack * st); + +#endif // READ_H