1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 00:07:35 +00:00

LibCMake: Add a lexer for CMakeCache.txt

This is a totally different syntax than for regular CMake files, and
also is undocumented and subject to change, but it's also nice and
simple. :^)
This commit is contained in:
Sam Atkins 2023-03-07 20:33:16 +00:00 committed by Linus Groh
parent 515fca4f7a
commit bb07d678ac
6 changed files with 324 additions and 5 deletions

View file

@ -8,14 +8,10 @@
#include <AK/StringView.h>
#include <AK/Vector.h>
#include <LibCMake/Position.h>
namespace CMake {
struct Position {
size_t line { 0 };
size_t column { 0 };
};
struct VariableReference {
StringView value;
Position start;