Skip to content

We need a way to add custom types before start parsing #13

Description

@mingodad

Trying to parse sqlite3.c (after preprocessing it) I'm getting this erro:

./xocfe.exe sqlite3.pp.c -dump sqlite3.c.dump


error(11):meet '__builtin_va_list', illegal qualifier of declaration
error(11):meet '__gnuc_va_list', expected ';' after declaration

sqlite3.pp.c - (2) error(s), (0) warnging(s)

Other parsers usually have a function to add custom types before start parsing (see https://github.com/afborchert/astl-c/blob/27e8ed50fdd0336e3d9bd9cd58b50959723ab2bd/astl-c/run.cpp#L73, https://github.com/edubart/lpegrex/blob/89dc4fe918048eb881c5784ddedd22527cbff144/parsers/c11.lua#L622, https://github.com/pmer/pcc/blob/bfb7db646de6b28524b86d492c32f37970e9374e/cc/cxxcom/main.c#L290) this way it's possible to at least parse the C source file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions