15 lines
515 B
C#
15 lines
515 B
C#
// Copyright (c) StellaOps. All rights reserved.
|
|
// Licensed under BUSL-1.1. See LICENSE in the project root.
|
|
using System.Text.RegularExpressions;
|
|
|
|
namespace StellaOps.BinaryIndex.Decompiler;
|
|
|
|
public sealed partial class DecompiledCodeParser
|
|
{
|
|
[GeneratedRegex(@"(?<type>\w+)\s+(?<name>\w+)\s*(?:=|;)", RegexOptions.Compiled)]
|
|
private static partial Regex VariableDeclarationRegex();
|
|
|
|
[GeneratedRegex(@"(?<name>\w+)\s*\(", RegexOptions.Compiled)]
|
|
private static partial Regex FunctionCallRegex();
|
|
}
|