A descriptio of all the steps to be able to debug Zed using Zed. This is useful if you want to add features and fix errors within the Zed codebase using Zed itself.
First you need to download and compile the debugger branch:
global using static Results.Result; | |
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.Runtime.CompilerServices; | |
namespace Results; | |
/// <summary> |
from typing import ( | |
Sequence, | |
Iterable, | |
Callable | |
) | |
type Predicate[ T ] = Callable[ [ T ] , bool ] | |
type Converter[ TIn , TOut ] = Callable[ [ TIn ] , TOut ] | |
class QueryException( Exception ): |
private static uint Adler32(string str) | |
{ | |
const int mod = 65521; | |
uint a = 1, b = 0; | |
foreach (char c in str) { | |
a = (a + c) % mod; | |
b = (b + a) % mod; | |
} | |
return (b << 16) | a; | |
} |