You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 26, 2023. It is now read-only.
// Regex matching all valid strings, with the least complicated in the back so that e.g. == gets matched as == and not as =, =
public static CheckedString[] Lex(string line, int lineNo) => Regex.Matches(line, "(\\d+\\.\\d+|[a-zA-Z0-9]+|\\.\\.\\.|==|!=|\\|\\||&&|>=|<=|[\\^*/%+\\-=(){}#<>!,\\[\\]:.]|\"[^\"]*\")").Select(match => new CheckedString {Str = match.Value.Trim(), Line = lineNo}).ToArray();