public static int IdentifySymbolValue(this ILanguageRuntime @this, object value) { if (value == null) { return(PredefinedTokens.Eoi); } return(@this.Identify(value.GetType())); }
public static Msg Literal(this ILanguageRuntime @this, string literal) { var id = @this.Identify(literal); return(new Msg(id, null, Loc.Unknown)); }