Recent content by sebastian

  1. sebastian

    F-string support

    this is old code okay stop bullying me Kidding. But I get it :/
  2. sebastian

    F-string support

    This function uses a lot of f-strings to output a list nicely. Here is the code: def return_exp_list_as_str(obj: list[Exponent], fancy: bool = False, brackets: str = "[]", just_print: bool = False) -> str: output = "" if fancy: try: output += f"{brackets[0]}"...
  3. sebastian

    Lists with multiple types inside

    It's a good idea, but I can see a lot of extra hassle trying to get items in & out. I was considering making everything a string, and have the parser directly put in the sublists (don't parse them). And then when it comes to reading the parsed tokens, then I could just call the parser on the...
  4. sebastian

    F-string support

    I also suggest you consider something as an alternative to f-strings, I use them a lot and 11l just hates them right now (doesn't recognize them at all). Perhaps you could use something with std::format in c++, and maybe have them pass either unaffected to 11l or use std::format or some...
  5. sebastian

    Lists with multiple types inside

    I have a program that contains a list of tokens. The items in that list could be: An int A float A string or, another list with the same possible types (recursively). I could not find a way to put this so that 11l could understand it; it also doesn't seem to like the "list" type in type hints...
Top