https://linen.dev logo
Join Discord
Powered by
# haxe-ui
  • b

    bright-gpu-74537

    02/10/2023, 3:05 PM
    ive actually decide to copy the haxe ast here, i dont know why i didnt think about it before... the parsing will be a pain, sure, but if the output format is "known" (and right, which it would be since haxe works), the parsing should be easier
  • c

    clever-yak-82528

    02/10/2023, 3:05 PM
    also look at this if you dare
  • c

    clever-yak-82528

    02/10/2023, 3:05 PM
    https://github.com/rosefromthedead/boolean-parser
  • c

    clever-yak-82528

    02/10/2023, 3:06 PM
    boolean expression parser my friend and i wrote in haskell
  • f

    full-journalist-82607

    02/10/2023, 3:10 PM
    you can maybe also take some inspiration from https://github.com/andywhite37/haxpression ( but it's also a big library)
  • b

    bright-gpu-74537

    02/10/2023, 3:11 PM
    yeah, none of this is sounding fun tbh :/
  • c

    clever-yak-82528

    02/10/2023, 3:11 PM
    parsers really aren't
  • c

    clever-yak-82528

    02/10/2023, 3:11 PM
    i would seriously consider looking at icu syntax
  • c

    clever-yak-82528

    02/10/2023, 3:11 PM
    it's significantly simpler to parse than full algebraic expressions
  • b

    bright-gpu-74537

    02/10/2023, 3:13 PM
    you arent wrong, ill let this all digest a little
  • b

    bright-gpu-74537

    02/10/2023, 3:15 PM
    that is a nice syntax tbh, and isnt it actually better than .po??
  • c

    clever-yak-82528

    02/10/2023, 3:16 PM
    it's... a bit janky and there are some annoying things in how it's implemented on crowdin
  • c

    clever-yak-82528

    02/10/2023, 3:16 PM
    i would think that a custom implementation for haxeui could solve most of those things
  • b

    bright-gpu-74537

    02/10/2023, 3:19 PM
    i wonder about something like this:
  • c

    clever-yak-82528

    02/10/2023, 3:19 PM
    ...on the other hand, maybe a javafx backend isn't the best idea
  • b

    bright-gpu-74537

    02/10/2023, 3:19 PM
    Copy code
    count=You {
       itemCount=0: have no projects
       itemCount=1: have one project
       itemCount>1: have %itemCount% projects
    }
  • c

    clever-yak-82528

    02/10/2023, 3:19 PM
    perhaps
  • c

    clever-yak-82528

    02/10/2023, 3:19 PM
    it would be nice to have what icu has where there are predefined conditions for each language
  • i

    icy-zebra-52882

    02/10/2023, 3:19 PM
    looks like fluent tbh
  • c

    clever-yak-82528

    02/10/2023, 3:20 PM
    either manually specifying them somewhere or hardcoding them
  • b

    bright-gpu-74537

    02/10/2023, 3:20 PM
    ok, but that could just be "plural=X>1" in some def file
  • c

    clever-yak-82528

    02/10/2023, 3:20 PM
    yeah, that would be great
  • b

    bright-gpu-74537

    02/10/2023, 3:21 PM
    maybe thats the key here, then... some hybrid sort of system... 🤔
  • b

    bright-gpu-74537

    02/10/2023, 3:21 PM
    certainly takes the effort out of parsing
  • b

    bright-gpu-74537

    02/10/2023, 3:21 PM
    and for simple things
    foo=bar
    is still perfectly valid
  • c

    clever-yak-82528

    02/10/2023, 3:21 PM
    yeah
  • b

    bright-gpu-74537

    02/10/2023, 3:24 PM
    for references, what would:
    Copy code
    count=You {
       itemCount=0: have no projects
       itemCount=1: have one project
       itemCount>1: have %itemCount% projects
    } currently active
    look like in: welsh ( @clever-yak-82528 ) french ( @full-journalist-82607 ) polish ( @icy-zebra-52882 ? ) ?
  • i

    icy-zebra-52882

    02/10/2023, 3:24 PM
    I'm not polish
  • b

    bright-gpu-74537

    02/10/2023, 3:24 PM
    yeah, i wasnt sure... thought maybe you might speak it
  • i

    icy-zebra-52882

    02/10/2023, 3:24 PM
    I used DeepL to get translation for polish
1...149614971498...1687Latest