Skip to content
Discussion options

You must be logged in to vote

Hello, thank you for giving our project a shot!

For this you could either do a whole-program search through the tree's root for a table has field named Raw or do it all at once with a LuaSyntaxRewriter. For the sake of brevity I'm gonna demonstrate only the whole-program search but if you become more interested in the LuaSyntaxRewriter approach, I can try to guide you on it as well.

For example:

using Loretta.CodeAnalysis;
using Loretta.CodeAnalysis.Lua;
using Loretta.CodeAnalysis.Lua.Syntax;

var code = """
RandomName = {
    RequestId = 0x7A6,
    ResponseId = 0x7A7,
    Raw = {
        ["10 03"] = "50 03 00 28 00 C8",
        ["3E 00"] = "7E 00",
        ["22 22 35"] = "62 22 35 47 11",

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@DiagProf
Comment options

@GGG-KILLER
Comment options

@DiagProf
Comment options

@DiagProf
Comment options

@GGG-KILLER
Comment options

Answer selected by GGG-KILLER
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants