evaluation compiler debug tooltip visualizer

This commit is contained in:
Ryan Fleury
2024-08-13 15:41:01 -07:00
parent c64d207d4d
commit 07c4e6ee87
7 changed files with 204 additions and 29 deletions
+23
View File
@@ -1,6 +1,17 @@
// Copyright (c) 2024 Epic Games Tools
// Licensed under the MIT license (https://opensource.org/license/mit/)
@table(name)
E_TokenKindTable:
{
{Null}
{Identifier}
{Numeric}
{StringLiteral}
{CharLiteral}
{Symbol}
}
@table(name basic_string basic_byte_size)
// NOTE(rjf): basic_byte_size == 0xFF? => address sized
E_TypeKindTable:
@@ -131,6 +142,12 @@ E_InterpretationCodeTable:
{ MalformedBytecode "Malformed bytecode." }
}
@enum E_TokenKind:
{
@expand(E_TokenKindTable a) `$(a.name)`,
COUNT,
}
@enum E_TypeKind:
{
@expand(E_TypeKindTable a) `$(a.name)`,
@@ -159,6 +176,12 @@ E_InterpretationCodeTable:
COUNT,
}
@data(String8)
e_token_kind_strings:
{
@expand(E_TokenKindTable a) `str8_lit_comp("$(a.name)")`
}
@data(String8)
e_expr_kind_strings:
{