This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from typing import Iterator, Match, TypeVar, Type | |
from dataclasses import dataclass, field | |
from enum import Enum | |
import re | |
class TokenKind(int, Enum): | |
NUMBER = 0x01 | |
SYMBOL = 0x02 | |
ASSIGN = 0x03 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from ctypes import POINTER, WINFUNCTYPE, Array, Structure, sizeof, windll, c_uint32, byref, HRESULT, c_void_p | |
from ctypes.wintypes import BOOL, HANDLE, HDC, HMONITOR, HWND, LONG, LPARAM, LPDWORD, LPRECT, LPWSTR, PDWORD, PHANDLE, PUINT, RECT, UINT, POINT, DWORD, USHORT, WCHAR | |
from enum import IntEnum, auto | |
class MONITOR_DPI_TYPE(IntEnum): | |
MDT_EFFECTIVE_DPI = 0, | |
MDT_ANGULAR_DPI = 1, | |
MDT_RAW_DPI = 2, | |
MDT_DEFAULT = MDT_EFFECTIVE_DPI |