if
to result codes. If result is true
or false
, it changes them.
null
values and Red map!
changes under discussion.
>> consonant: charset "bcdfghjklmnpqrstvwxz"
== make bitset! #{0000000000000000000000003BBEFBA0}
>> vowel: charset "aeiouy"
== make bitset! #{00000000000000000000000044410440}
>> alphabet: union consonant vowel
== make bitset! #{0000000000000000000000007FFFFFE0}
>> parse "american" [opt vowel consonant "eri" consonant any alphabet]
== true
>> parse "verify" [opt vowel consonant "eri" consonant any alphabet]
== true
>> match: [consonant "eri" consonant (passed?: true)]
== [consonant "eri" consonant (passed?: true)]
>> parse "asdfg" [(passed?: false) some [not match skip | match to end] if (passed?)]
== false
>> parse "zooperist" [(passed?: false) some [not match skip | match to end] if (passed?)]
== true
@Ungaretti After first try I am impressed by your Reditor. It is smaller and faster than the Atom (7 MB vs hundreds of MB). I am not sure how this will work with full projects by I think it will be my go-to for smaller things. Thank you.
I suggest you tick on Settings/Preferences.../Hide menu bar to make it look even cleaner, like the screenshot above. You can toggle the menu bar back by pressing the alt key or F10. I don't make the hidden menu default because it might be confusing
In my opinion it is good that it is not hidden by default (above note is ok). I like to keep open multiple files at the same time so having tab visible is good.
ps. you are missing an icon for preferences.
[consonant "eri" consonant]
?>> consonant: exclude charset [#"a" - #"z"] charset "aeiouy"
== make bitset! #{0000000000000000000000003BBEFBA0}
>> rule: [thru [consonant "eri" consonant] to end]
== [thru [consonant "eri" consonant] to end]
>> tests: ["american" "verify" "ordering" "zooperist"]
== ["american" "verify" "ordering" "zooperist"]
>> collect [forall tests [keep parse tests/1 rule]]
== [true true true true]