This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
send OutputDebugStringA for any listners like debugview++ | |
see also debugging tips, https://github.com/red/red/wiki/ [DOC]-Debugging | |
https://github.com/red/red/wiki/%5BDOC%5D-Debugging | |
; err: copy "" | |
dbgecho: %PATHTO/dbg-echo.red.exe | |
; probe call/error/shell rejoin [dbgecho " echo parse-trace"] err ;#"^@" added there | |
call rejoin [dbgecho " " form init-pos " echo parse-trace^@"] | |
; print [exists? dbgecho mold err] ;no error |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
get red-lang from red-lang.org | |
takeoff on a red-lang gitter post from 2018 about parse-?? custom tracing | |
un-comment at do-parse to see the demo parse-trace and parse/trace :callback | |
gui is from a simplified parse tab in my unpublished ne1 clean-script tool | |
cGPT suggested some utf color markers for succeed/fail that improve readability | |
difficult to imagine how to make trace debug parse rules without showing everything | |
;credits, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
s2334p3 chatGPT assisted mock eye chart | |
with riddles on progressively smaller font lines | |
an experiment in AI pair programming in red language it has limited training with. | |
it slips into rebol, python or javascript. inventing syntax and functions | |
it can mimic a REPL to show source of functions, which it also invents. | |
this is a crazy way to work | |
may or may not post the entire q&a, would need too much annotation | |
here's a screenshot... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
small utility to work with base 64 and custom red-lang embedded png images | |
bits of code from anywhere, | |
screenshot | |
https://usercontent.irccloud-cdn.com/file/2zLaOKXj/b64-png-screenshot.jpg | |
still haven't solved how to encode base 64 png, but decoding works | |
could decode directly from file? might be a workaround for now... nope | |
user interface has some anomalies, likely caused by ne1, may or may not fix. | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
draw some random polka dots, could be flashing light hazard. | |
https://en.wikipedia.org/wiki/Polka_dot | |
https://www.bing.com/images/search?q=pokadots | |
https://www.bing.com/images/search?q=polkadots | |
not quite there yet, needs a heuristic color selection. | |
random isn't always complementary. | |
dot distribution looks too much like a plain regular grid | |
ideas and maybe source from all the usual suspects |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cognitive style tests, games, brain teasers. | |
see screenshot cog-test-red-lang.gif | |
https://usercontent.irccloud-cdn.com/file/3FxMnTHm/cog-test-red-lang.gif | |
download an under 2mb cross platform script interpreter/compiler from red-lang.org | |
warning, could crash or silent exit at any moment. it's not you it's me. | |
I knocked this together in a few hours/days, it's at best lightly tested. | |
will work w/o @GalenIvanov Animation DSL with a few conditionals | |
may be the default soon in recent red-lang anyway |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
may be auto generated | |
diff of keywords difference in cli or gui console and color names | |
Red [ | |
Title: "red-diffwords.red" | |
Author: "" | |
Date: "" | |
rights: "MITTENS" | |
;Needs: 'View ;can't have view cli | |
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ne1 11/19 hardwire to generate syntax file for geany | |
needs more work to filter and split keyword list by type | |
did I mention I barely knew any rebol/red when I first got this working? | |
still a bit surprised when something works the first time | |
there sure are a lot of existing words for a language with so few reserved | |
needs %./red-diffwords.red to declare several lists of keywords | |
no command-line options but can edit debug+ to turn off or reduce prints to console | |
don't debug the comments |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://news.e-scribe.com/193 | |
To move, you tell the computer how many numbers (counting from the left) to reverse. | |
For example, if the current list is 2 3 4 5 1 6 7 8 9 and you reverse 4, | |
the result will be 5 4 3 2 1 6 7 8 9. Now if you reverse 5, you win. | |
• Comment from Pascal | |
Funny game, here is a REBOL version of this game. An interesting thing is its readability. | |
numbers: random ordered: [1 2 3 4 5 6 7 8 9] |