mirror of
https://github.com/RGBCube/serenity
synced 2025-05-24 06:45:07 +00:00

The SQL engine is expected to be a fairly sizeable piece of software. Therefore we're starting to restructure the codebase for growth.
16 lines
412 B
C++
16 lines
412 B
C++
/*
|
|
* Copyright (c) 2021, Luke Wilde <lukew@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#include <LibSQL/AST/Lexer.h>
|
|
#include <LibSQL/AST/Parser.h>
|
|
#include <stdio.h>
|
|
|
|
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
|
|
{
|
|
auto parser = SQL::AST::Parser(SQL::AST::Lexer({ data, size }));
|
|
[[maybe_unused]] auto statement = parser.next_statement();
|
|
return 0;
|
|
}
|