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

    clever-yak-82528

    02/10/2023, 2:56 PM
    what does hscript's parser look like?
  • b

    bright-gpu-74537

    02/10/2023, 2:56 PM
    big
  • c

    clever-yak-82528

    02/10/2023, 2:56 PM
    rip
  • b

    bright-gpu-74537

    02/10/2023, 2:56 PM
    https://github.com/HaxeFoundation/hscript/blob/master/hscript/Parser.hx
  • c

    clever-yak-82528

    02/10/2023, 2:57 PM
    i wrote code a while ago to turn infix notation into reverse polish notation
  • b

    bright-gpu-74537

    02/10/2023, 2:57 PM
    keep in mind that also does waaaaay more than simpleexpreval would need to do
  • c

    clever-yak-82528

    02/10/2023, 2:57 PM
    it doesn't check the code, so the tree it produces might be nonsense, but you could use something like that as a base
  • b

    bright-gpu-74537

    02/10/2023, 2:58 PM
    i actually think the best way would be to "recreate" haxe's ast (a very small subset)
  • c

    clever-yak-82528

    02/10/2023, 2:58 PM
    there must be a library for doing stuff like that already, right?
  • b

    bright-gpu-74537

    02/10/2023, 2:58 PM
    yeah, but lib deps are something i really dont want if i can avoid - having haxeui rely on other libs is bad news imo
  • b

    bright-gpu-74537

    02/10/2023, 2:59 PM
    if that werent the case then i would just use hscript
  • c

    clever-yak-82528

    02/10/2023, 2:59 PM
    fair enough
  • b

    bright-gpu-74537

    02/10/2023, 2:59 PM
    and this should be a small(ish) problem
  • c

    clever-yak-82528

    02/10/2023, 2:59 PM
    by the way
  • c

    clever-yak-82528

    02/10/2023, 2:59 PM
    does haxeui have any backends that target java?
  • c

    clever-yak-82528

    02/10/2023, 2:59 PM
    my friend is being forced to write a gui in java and hates every minute of it
  • b

    bright-gpu-74537

    02/10/2023, 3:00 PM
    there was a test swing backend, and a test javafx backend
  • b

    bright-gpu-74537

    02/10/2023, 3:00 PM
    but i didnt pursue them further than PoC
  • a

    ambitious-knife-25690

    02/10/2023, 3:00 PM
    Found an odd bug with color picker
  • b

    bright-gpu-74537

    02/10/2023, 3:01 PM
    https://mobile.twitter.com/ianharrigan1982/status/1385334258735230978
  • b

    bright-gpu-74537

    02/10/2023, 3:01 PM
    yeah, i think my conversion between colour spaces is off
  • c

    clever-yak-82528

    02/10/2023, 3:02 PM
    ooo
  • c

    clever-yak-82528

    02/10/2023, 3:02 PM
    i think the problem might be that the slider tries to go past its bounds and the colour component being changed wraps around
  • b

    bright-gpu-74537

    02/10/2023, 3:03 PM
    yeah, there is a whole lot of "erm, that works" rather than proper applied maths because "i understand colour spaces" 😄
  • c

    clever-yak-82528

    02/10/2023, 3:03 PM
    do you want me to take a look at it? i barely understand colour spaces but also ive had to write a lot of conversion code for working with images before
  • b

    bright-gpu-74537

    02/10/2023, 3:04 PM
    you certainly can... your going to write a new simpleexpressioneval too, right? ... ... RIGHT? 😄
  • c

    clever-yak-82528

    02/10/2023, 3:04 PM
    heh
  • c

    clever-yak-82528

    02/10/2023, 3:04 PM
    got too many other projects im currently distracted from
  • c

    clever-yak-82528

    02/10/2023, 3:04 PM
    i also am very bad at parsers
  • c

    clever-yak-82528

    02/10/2023, 3:05 PM
    here's some bad python code to convert from infix notation to rpn if it's helpful
1...149514961497...1687Latest