Brassica SCA [v1.0.0]

Conworlds and conlangs
bradrn
Posts: 6230
Joined: Fri Oct 19, 2018 1:25 am

Re: Brassica SCA [v0.0.2]

Post by bradrn »

Hallow XIII wrote: Fri Oct 22, 2021 8:32 am
bradrn wrote: Thu Oct 21, 2021 5:23 pm
Hallow XIII wrote: Thu Oct 21, 2021 9:18 am So I have good news and bad news. The good news is that I've managed to compile and run the brassica GUI on Linux. The bad news is that it was extremely involved to do so, largely because (til) Windows doesn't have a distinction between position-independent and position-dependent code, which lets you get away with more creative linking than on Unixen. The easiest way for me to get it running was to compile everything with -fPIC -fPIE and then dynamically link all the Haskell dependencies, which is also the preferred distribution format for my distribution's package management system.
I’m seriously impressed that you managed to do this — without proper documentation! (I’ve been meaning to write some, but alas, haven’t gotten around to it just yet…) I find it extremely surprising that this was easier to build on Windows than Linux; in my experience, it’s usually the other way around. On the other hand, I was originally intending to link the Haskell dynamically, but gave up when I discovered this is impossible on Windows.
In many ways, it's still easier to build on Linux. I basically didn't have to do any of the steps involving passing the locations of Qt tools. It's just that the way you link the GUI on Windows is impossible on Linux, since statically linked Haskell libraries aren't position-independent and so can't be linked into a Qt program that uses dynamically linked Qt, which is the default everywhere. So my workaround was to dynamically link the Haskell, but if you do that and your main linker pass isn't controlled by GHC then you have to manually pass the location of all the Haskell dependencies to the linker. Thankfully I found a perl script that can mostly automate this...
Thanks for explaining! Could you share the Perl script please?

Follow-up question: do the Haskell dependencies end up as separate dynamic libraries each, or is all the Haskell code+dependencies compiled into one big DLL? (Yes, I know that’s not the right term for Linux, but it’s late at night and I can’t remember what I should be calling it…)
Conlangs: Scratchpad | Texts | antilanguage
Software: See http://bradrn.com/projects.html
Other: Ergativity for Novices

(Why does phpBB not let me add >5 links here?)
User avatar
Hallow XIII
Posts: 127
Joined: Sat Jul 14, 2018 11:16 am

Re: Brassica SCA [v0.0.2]

Post by Hallow XIII »

bradrn wrote: Fri Oct 22, 2021 9:02 am
Hallow XIII wrote: Fri Oct 22, 2021 8:32 am
bradrn wrote: Thu Oct 21, 2021 5:23 pm I’m seriously impressed that you managed to do this — without proper documentation! (I’ve been meaning to write some, but alas, haven’t gotten around to it just yet…) I find it extremely surprising that this was easier to build on Windows than Linux; in my experience, it’s usually the other way around. On the other hand, I was originally intending to link the Haskell dynamically, but gave up when I discovered this is impossible on Windows.
In many ways, it's still easier to build on Linux. I basically didn't have to do any of the steps involving passing the locations of Qt tools. It's just that the way you link the GUI on Windows is impossible on Linux, since statically linked Haskell libraries aren't position-independent and so can't be linked into a Qt program that uses dynamically linked Qt, which is the default everywhere. So my workaround was to dynamically link the Haskell, but if you do that and your main linker pass isn't controlled by GHC then you have to manually pass the location of all the Haskell dependencies to the linker. Thankfully I found a perl script that can mostly automate this...
Thanks for explaining! Could you share the Perl script please?
Sure. I found it at this blog post, which also provides a more in-depth explanation of why the script exists.
bradrn wrote: Fri Oct 22, 2021 9:02 am Follow-up question: do the Haskell dependencies end up as separate dynamic libraries each, or is all the Haskell code+dependencies compiled into one big DLL? (Yes, I know that’s not the right term for Linux, but it’s late at night and I can’t remember what I should be calling it…)
Unfortunately, it's separate DLLs (the Linux term is "shared object"). IIRC I ended up with five Haskell DLLs including the main Brassica DLL, plus I think two from GHC and the GHC RTS itself.
Mbtrtcgf qxah bdej bkska kidabh n ñstbwdj spa.
Ogñwdf n spa bdej bruoh kiñabh ñbtzmieb n qxah.
Qiegf. Qiegf. Qiegf. Qiegf. Qiegf. Qiegf. Qiegf.
bradrn
Posts: 6230
Joined: Fri Oct 19, 2018 1:25 am

Re: Brassica SCA [v0.0.2]

Post by bradrn »

Hallow XIII wrote: Fri Oct 22, 2021 9:33 am
bradrn wrote: Fri Oct 22, 2021 9:02 am
Hallow XIII wrote: Fri Oct 22, 2021 8:32 am

In many ways, it's still easier to build on Linux. I basically didn't have to do any of the steps involving passing the locations of Qt tools. It's just that the way you link the GUI on Windows is impossible on Linux, since statically linked Haskell libraries aren't position-independent and so can't be linked into a Qt program that uses dynamically linked Qt, which is the default everywhere. So my workaround was to dynamically link the Haskell, but if you do that and your main linker pass isn't controlled by GHC then you have to manually pass the location of all the Haskell dependencies to the linker. Thankfully I found a perl script that can mostly automate this...
Thanks for explaining! Could you share the Perl script please?
Sure. I found it at this blog post, which also provides a more in-depth explanation of why the script exists.
Thanks again! Oddly enough, I did actually consult Cheplyaka’s blog while figuring out how to make Brassica… I just didn’t find that particular article.
bradrn wrote: Fri Oct 22, 2021 9:02 am Follow-up question: do the Haskell dependencies end up as separate dynamic libraries each, or is all the Haskell code+dependencies compiled into one big DLL? (Yes, I know that’s not the right term for Linux, but it’s late at night and I can’t remember what I should be calling it…)
Unfortunately, it's separate DLLs (the Linux term is "shared object"). IIRC I ended up with five Haskell DLLs including the main Brassica DLL, plus I think two from GHC and the GHC RTS itself.
OK, this sounds like pretty much like what I was expecting. Even statically I have to find and link the RTS separately. (I was mostly worried about ending up with one file per dependency, which would be ridiculously many.)
Conlangs: Scratchpad | Texts | antilanguage
Software: See http://bradrn.com/projects.html
Other: Ergativity for Novices

(Why does phpBB not let me add >5 links here?)
bradrn
Posts: 6230
Joined: Fri Oct 19, 2018 1:25 am

Re: Brassica SCA [online version]

Post by bradrn »

Brassica is now online! Try it at http://bradrn.com/brassica. The desktop version is still recommended, since it’s much faster and has a few extra features, but the online one should still be very usable.
Conlangs: Scratchpad | Texts | antilanguage
Software: See http://bradrn.com/projects.html
Other: Ergativity for Novices

(Why does phpBB not let me add >5 links here?)
Travis B.
Posts: 6826
Joined: Sun Jul 15, 2018 8:52 pm

Re: Brassica SCA [online version]

Post by Travis B. »

bradrn wrote: Sun Jun 19, 2022 7:02 am Brassica is now online! Try it at http://bradrn.com/brassica. The desktop version is still recommended, since it’s much faster and has a few extra features, but the online one should still be very usable.
I see you used ghcjs with that!
Yaaludinuya siima d'at yiseka wohadetafa gaare.
Ennadinut'a gaare d'ate eetatadi siiman.
T'awraa t'awraa t'awraa t'awraa t'awraa t'awraa t'awraa.
User avatar
WarpedWartWars
Posts: 197
Joined: Sat Aug 28, 2021 2:31 pm
Location: tɑ tɑ θiθɾ eɾloθ tɑ moew θerts

Re: Brassica SCA [online version]

Post by WarpedWartWars »

bradrn wrote: Sun Jun 19, 2022 7:02 am Brassica is now online! Try it at http://bradrn.com/brassica. The desktop version is still recommended, since it’s much faster and has a few extra features, but the online one should still be very usable.
I hope you can add the missing features to the online version, especially since I'm not going to download the 32.7 megabyte installer. Now if you could bring that size down without sacrificing any of the features, then maybe...
tɑ tɑ tɑ tɑ θiθɾ eɾloθ tɑ moew θerts olɑrk siθe
of of of of death abyss of moew kingdom sand witch-PLURAL
The witches of the desert of the kingdom of Moew of the Abyss of Death

tɑ toɾose koɾot tsɑx
of apple-PLURAL magic cold
cold magic of apples
bradrn
Posts: 6230
Joined: Fri Oct 19, 2018 1:25 am

Re: Brassica SCA [online version]

Post by bradrn »

Travis B. wrote: Sun Jun 19, 2022 2:15 pm
bradrn wrote: Sun Jun 19, 2022 7:02 am Brassica is now online! Try it at http://bradrn.com/brassica. The desktop version is still recommended, since it’s much faster and has a few extra features, but the online one should still be very usable.
I see you used ghcjs with that!
Oh, yes. That’s why it’s ridiculously slow and needs Nix to build. On the other hand, that’s also why it’s fully compatible with the desktop version. Everything is tradeoffs.
WarpedWartWars wrote: Sun Jun 19, 2022 6:02 pm
bradrn wrote: Sun Jun 19, 2022 7:02 am Brassica is now online! Try it at http://bradrn.com/brassica. The desktop version is still recommended, since it’s much faster and has a few extra features, but the online one should still be very usable.
I hope you can add the missing features to the online version, especially since I'm not going to download the 32.7 megabyte installer. Now if you could bring that size down without sacrificing any of the features, then maybe...
Some of the features can definitely be added; I’ll work on it. Making the installer smaller would be more difficult, since Qt alone takes up a substantial amount of space.
Conlangs: Scratchpad | Texts | antilanguage
Software: See http://bradrn.com/projects.html
Other: Ergativity for Novices

(Why does phpBB not let me add >5 links here?)
User avatar
WarpedWartWars
Posts: 197
Joined: Sat Aug 28, 2021 2:31 pm
Location: tɑ tɑ θiθɾ eɾloθ tɑ moew θerts

Re: Brassica SCA [online version]

Post by WarpedWartWars »

bradrn wrote: Sun Jun 19, 2022 8:25 pm
WarpedWartWars wrote: Sun Jun 19, 2022 6:02 pm I hope you can add the missing features to the online version, especially since I'm not going to download the 32.7 megabyte installer. Now if you could bring that size down without sacrificing any of the features, then maybe...
Some of the features can definitely be added; I’ll work on it. Making the installer smaller would be more difficult, since Qt alone takes up a substantial amount of space.
If you could make, say, a Python-based version, using Tkinter, you could probably get it much smaller.
tɑ tɑ tɑ tɑ θiθɾ eɾloθ tɑ moew θerts olɑrk siθe
of of of of death abyss of moew kingdom sand witch-PLURAL
The witches of the desert of the kingdom of Moew of the Abyss of Death

tɑ toɾose koɾot tsɑx
of apple-PLURAL magic cold
cold magic of apples
Travis B.
Posts: 6826
Joined: Sun Jul 15, 2018 8:52 pm

Re: Brassica SCA [online version]

Post by Travis B. »

WarpedWartWars wrote: Mon Jun 20, 2022 12:56 pm
bradrn wrote: Sun Jun 19, 2022 8:25 pm
WarpedWartWars wrote: Sun Jun 19, 2022 6:02 pm I hope you can add the missing features to the online version, especially since I'm not going to download the 32.7 megabyte installer. Now if you could bring that size down without sacrificing any of the features, then maybe...
Some of the features can definitely be added; I’ll work on it. Making the installer smaller would be more difficult, since Qt alone takes up a substantial amount of space.
If you could make, say, a Python-based version, using Tkinter, you could probably get it much smaller.
You cannot just casually expect someone to rewrite their whole, highly non-trivial program written in Haskell in Python, and to do so just to make use of the misbegotten GUI framework known as Tkinter is really silly.
Yaaludinuya siima d'at yiseka wohadetafa gaare.
Ennadinut'a gaare d'ate eetatadi siiman.
T'awraa t'awraa t'awraa t'awraa t'awraa t'awraa t'awraa.
User avatar
WarpedWartWars
Posts: 197
Joined: Sat Aug 28, 2021 2:31 pm
Location: tɑ tɑ θiθɾ eɾloθ tɑ moew θerts

Re: Brassica SCA [online version]

Post by WarpedWartWars »

Travis B. wrote: Mon Jun 20, 2022 2:15 pm
WarpedWartWars wrote: Mon Jun 20, 2022 12:56 pm If you could make, say, a Python-based version, using Tkinter, you could probably get it much smaller.
You cannot just casually expect someone to rewrite their whole, highly non-trivial program written in Haskell in Python, and to do so just to make use of the misbegotten GUI framework known as Tkinter is really silly.
The main benefit of Tkinter is that it comes with Python by default.

As for the Haskell>Python, If I knew Haskell and Qt, I could probably do it myself.
tɑ tɑ tɑ tɑ θiθɾ eɾloθ tɑ moew θerts olɑrk siθe
of of of of death abyss of moew kingdom sand witch-PLURAL
The witches of the desert of the kingdom of Moew of the Abyss of Death

tɑ toɾose koɾot tsɑx
of apple-PLURAL magic cold
cold magic of apples
Travis B.
Posts: 6826
Joined: Sun Jul 15, 2018 8:52 pm

Re: Brassica SCA [online version]

Post by Travis B. »

WarpedWartWars wrote: Mon Jun 20, 2022 2:25 pm
Travis B. wrote: Mon Jun 20, 2022 2:15 pm
WarpedWartWars wrote: Mon Jun 20, 2022 12:56 pm If you could make, say, a Python-based version, using Tkinter, you could probably get it much smaller.
You cannot just casually expect someone to rewrite their whole, highly non-trivial program written in Haskell in Python, and to do so just to make use of the misbegotten GUI framework known as Tkinter is really silly.
The main benefit of Tkinter is that it comes with Python by default.

As for the Haskell>Python, If I knew Haskell and Qt, I could probably do it myself.
So what if Tkinter comes with Python itself; just that Python comes with Tkinter is by no means justification whatsoever for rewriting a significantly-sized application written in Haskell just to use it. So to tell someone that they ought to rewrite their application in Python just because of Tkinter being available for use in Python comes off as awfully presumptuous.
Yaaludinuya siima d'at yiseka wohadetafa gaare.
Ennadinut'a gaare d'ate eetatadi siiman.
T'awraa t'awraa t'awraa t'awraa t'awraa t'awraa t'awraa.
User avatar
WarpedWartWars
Posts: 197
Joined: Sat Aug 28, 2021 2:31 pm
Location: tɑ tɑ θiθɾ eɾloθ tɑ moew θerts

Re: Brassica SCA [online version]

Post by WarpedWartWars »

Travis B. wrote: Mon Jun 20, 2022 2:32 pm So what if Tkinter comes with Python itself; just that Python comes with Tkinter is by no means justification whatsoever for rewriting a significantly-sized application written in Haskell just to use it. So to tell someone that they ought to rewrite their application in Python just because of Tkinter being available for use in Python comes off as awfully presumptuous.
Please, I don't want to argue.

But as I said, if I learned Haskell and Qt, I could probably remake it in Python. No need to have bradrn remake it there.
tɑ tɑ tɑ tɑ θiθɾ eɾloθ tɑ moew θerts olɑrk siθe
of of of of death abyss of moew kingdom sand witch-PLURAL
The witches of the desert of the kingdom of Moew of the Abyss of Death

tɑ toɾose koɾot tsɑx
of apple-PLURAL magic cold
cold magic of apples
Travis B.
Posts: 6826
Joined: Sun Jul 15, 2018 8:52 pm

Re: Brassica SCA [online version]

Post by Travis B. »

WarpedWartWars wrote: Mon Jun 20, 2022 2:38 pm
Travis B. wrote: Mon Jun 20, 2022 2:32 pm So what if Tkinter comes with Python itself; just that Python comes with Tkinter is by no means justification whatsoever for rewriting a significantly-sized application written in Haskell just to use it. So to tell someone that they ought to rewrite their application in Python just because of Tkinter being available for use in Python comes off as awfully presumptuous.
Please, I don't want to argue.

But as I said, if I learned Haskell and Qt, I could probably remake it in Python. No need to have bradrn remake it there.
The fact that you say this highly implies that you don't know any Haskell. (For the record, I have worked in Haskell in the past.)
Yaaludinuya siima d'at yiseka wohadetafa gaare.
Ennadinut'a gaare d'ate eetatadi siiman.
T'awraa t'awraa t'awraa t'awraa t'awraa t'awraa t'awraa.
User avatar
WarpedWartWars
Posts: 197
Joined: Sat Aug 28, 2021 2:31 pm
Location: tɑ tɑ θiθɾ eɾloθ tɑ moew θerts

Re: Brassica SCA [online version]

Post by WarpedWartWars »

Travis B. wrote: Mon Jun 20, 2022 2:41 pm
WarpedWartWars wrote: Mon Jun 20, 2022 2:38 pm Please, I don't want to argue.

But as I said, if I learned Haskell and Qt, I could probably remake it in Python. No need to have bradrn remake it there.
The fact that you say this highly implies that you don't know any Haskell. (For the record, I have worked in Haskell in the past.)
You are correct--I do not know any Haskell.

Edit: Except I now kind of do, since haskell.org has a little tutorial and interpreter built-in.
tɑ tɑ tɑ tɑ θiθɾ eɾloθ tɑ moew θerts olɑrk siθe
of of of of death abyss of moew kingdom sand witch-PLURAL
The witches of the desert of the kingdom of Moew of the Abyss of Death

tɑ toɾose koɾot tsɑx
of apple-PLURAL magic cold
cold magic of apples
Travis B.
Posts: 6826
Joined: Sun Jul 15, 2018 8:52 pm

Re: Brassica SCA [online version]

Post by Travis B. »

WarpedWartWars wrote: Mon Jun 20, 2022 2:47 pm
Travis B. wrote: Mon Jun 20, 2022 2:41 pm
WarpedWartWars wrote: Mon Jun 20, 2022 2:38 pm Please, I don't want to argue.

But as I said, if I learned Haskell and Qt, I could probably remake it in Python. No need to have bradrn remake it there.
The fact that you say this highly implies that you don't know any Haskell. (For the record, I have worked in Haskell in the past.)
You are correct--I do not know any Haskell.

Edit: Except I now kind of do, since haskell.org has a little tutorial and interpreter built-in.
It will be worth your time to learn Haskell. It is probably the most advanced (and mind-bending) language out there, short of dependently-typed languages such as Agda (which I myself have yet to wrap my brain around). It is on my list of languages that every programmer should learn* (aside from Lisp, Forth, and some sort of assembly).

* Even if you never, ever use any of these at your day job, which will very likely be the case, it is well worth it to learn these languages; conversely, my day jobs have mostly been in C, C++, Java, JavaScript, Python, HTML, and SQL, but I never learned much from any of these languages.
Yaaludinuya siima d'at yiseka wohadetafa gaare.
Ennadinut'a gaare d'ate eetatadi siiman.
T'awraa t'awraa t'awraa t'awraa t'awraa t'awraa t'awraa.
bradrn
Posts: 6230
Joined: Fri Oct 19, 2018 1:25 am

Re: Brassica SCA [online version]

Post by bradrn »

WarpedWartWars wrote: Mon Jun 20, 2022 2:38 pm But as I said, if I learned Haskell and Qt, I could probably remake it in Python. No need to have bradrn remake it there.
That’s impressive. I’m not sure I could, at least not without a great deal of difficulty. Haskell and Python are basically polar opposites, and converting one to the other is very highly nontrivial. It’s not like, say, converting C to Python, where programs written in the two at least have the same basic kind of structure. This program relies heavily on Haskell’s support for algebraic design, sum types and parser combinators, and I’m not sure how much of that could be converted to Python.
Travis B. wrote: Mon Jun 20, 2022 4:28 pm It will be worth your time to learn Haskell. It is probably the most advanced (and mind-bending) language out there, short of dependently-typed languages such as Agda (which I myself have yet to wrap my brain around). It is on my list of languages that every programmer should learn* (aside from Lisp, Forth, and some sort of assembly).
I second all these recommendations. Haskell, as I mentioned, is very different in structure to imperative languages like Python and C, and I’ve found learning it to be immensely helpful for thinking about problems in new ways.

(As for Agda, that’s more of a proof environment than a programming language; Idris is more programming-oriented. OCaml is probably as advanced as Haskell, but in different ways.)
Conlangs: Scratchpad | Texts | antilanguage
Software: See http://bradrn.com/projects.html
Other: Ergativity for Novices

(Why does phpBB not let me add >5 links here?)
User avatar
WarpedWartWars
Posts: 197
Joined: Sat Aug 28, 2021 2:31 pm
Location: tɑ tɑ θiθɾ eɾloθ tɑ moew θerts

Re: Brassica SCA [online version]

Post by WarpedWartWars »

bradrn wrote: Mon Jun 20, 2022 5:30 pm That’s impressive. I’m not sure I could, at least not without a great deal of difficulty. Haskell and Python are basically polar opposites, and converting one to the other is very highly nontrivial. It’s not like, say, converting C to Python, where programs written in the two at least have the same basic kind of structure. This program relies heavily on Haskell’s support for algebraic design, sum types and parser combinators, and I’m not sure how much of that could be converted to Python.
What's a parser combinator?
Travis B. wrote: Mon Jun 20, 2022 4:28 pm It will be worth your time to learn Haskell. It is probably the most advanced (and mind-bending) language out there, short of dependently-typed languages such as Agda (which I myself have yet to wrap my brain around). It is on my list of languages that every programmer should learn* (aside from Lisp, Forth, and some sort of assembly).
BTW I am currently in the middle of learning Scheme. (trying to get R5RS (I hope I didn't misspell that))
bradrn wrote: Mon Jun 20, 2022 5:30 pm I second all these recommendations. Haskell, as I mentioned, is very different in structure to imperative languages like Python and C, and I’ve found learning it to be immensely helpful for thinking about problems in new ways.
I would gladly learn Haskell, except I am not downloading a >55 MB compiler for it.
tɑ tɑ tɑ tɑ θiθɾ eɾloθ tɑ moew θerts olɑrk siθe
of of of of death abyss of moew kingdom sand witch-PLURAL
The witches of the desert of the kingdom of Moew of the Abyss of Death

tɑ toɾose koɾot tsɑx
of apple-PLURAL magic cold
cold magic of apples
Travis B.
Posts: 6826
Joined: Sun Jul 15, 2018 8:52 pm

Re: Brassica SCA [online version]

Post by Travis B. »

WarpedWartWars wrote: Mon Jun 20, 2022 7:43 pm
bradrn wrote: Mon Jun 20, 2022 5:30 pm I second all these recommendations. Haskell, as I mentioned, is very different in structure to imperative languages like Python and C, and I’ve found learning it to be immensely helpful for thinking about problems in new ways.
I would gladly learn Haskell, except I am not downloading a >55 MB compiler for it.
Those 55 MB are worth it, seriously. I'm surprised that that much data is an issue in this day and age, unless one's sole Internet connection is a cell network hotspot.
Yaaludinuya siima d'at yiseka wohadetafa gaare.
Ennadinut'a gaare d'ate eetatadi siiman.
T'awraa t'awraa t'awraa t'awraa t'awraa t'awraa t'awraa.
User avatar
WarpedWartWars
Posts: 197
Joined: Sat Aug 28, 2021 2:31 pm
Location: tɑ tɑ θiθɾ eɾloθ tɑ moew θerts

Re: Brassica SCA [online version]

Post by WarpedWartWars »

Travis B. wrote: Mon Jun 20, 2022 10:10 pm
WarpedWartWars wrote: Mon Jun 20, 2022 7:43 pm I would gladly learn Haskell, except I am not downloading a >55 MB compiler for it.
Those 55 MB are worth it, seriously. I'm surprised that that much data is an issue in this day and age, unless one's sole Internet connection is a cell network hotspot.
Except my sole Internet connection is a cell network hotspot.
tɑ tɑ tɑ tɑ θiθɾ eɾloθ tɑ moew θerts olɑrk siθe
of of of of death abyss of moew kingdom sand witch-PLURAL
The witches of the desert of the kingdom of Moew of the Abyss of Death

tɑ toɾose koɾot tsɑx
of apple-PLURAL magic cold
cold magic of apples
bradrn
Posts: 6230
Joined: Fri Oct 19, 2018 1:25 am

Re: Brassica SCA [online version]

Post by bradrn »

WarpedWartWars wrote: Mon Jun 20, 2022 7:43 pm
bradrn wrote: Mon Jun 20, 2022 5:30 pm That’s impressive. I’m not sure I could, at least not without a great deal of difficulty. Haskell and Python are basically polar opposites, and converting one to the other is very highly nontrivial. It’s not like, say, converting C to Python, where programs written in the two at least have the same basic kind of structure. This program relies heavily on Haskell’s support for algebraic design, sum types and parser combinators, and I’m not sure how much of that could be converted to Python.
What's a parser combinator?
The idea is that you can use combinators (i.e., functions) to build up bigger parsers from smaller parsers: thus, for instance, if you have parsers ‘a’ or ‘b’, you can get things like ‘a then b’, ‘either a or b’, ‘a and b in any order’, ‘a inside b’ and so forth. Brassica uses parser combinators (via the megaparsec library) to parse both sound changes and paradigms.
Conlangs: Scratchpad | Texts | antilanguage
Software: See http://bradrn.com/projects.html
Other: Ergativity for Novices

(Why does phpBB not let me add >5 links here?)
Post Reply