blue matrix

Julien Laguerre (18)

Parsing in Go, showing in Wails

It's an achievement. I was stuck for several days, daunted by the prospect of connecting Pigeon, which is a PEG parser generator for Go, to Wails which is my target platform. Well I succeeded! This would be probably nothing to anyone used to working with…

Continue reading...

Hup, design considerations

Right now, nothing has been said about: Multiple tables having the same name can be seen as a problem (which would lead to a namespace-based solution) or as a feature. I prefer to make it a feature. A table name represents a stack of values,…

Continue reading...

Hup, other than numbers

Hup can not only handle numbers, but also other types of terms: atoms, compound terms, and even embedded tables. Intuitively, a term can designate any element of meaning. Compound terms have the following syntax, which is vaguely reminiscent of Prolog. [ family | man( Pedro…

Continue reading...

Hup, a few operators

Arithmetic operators are as you'd expect them: add with "+", subtract with "-", multiply with "*", divide with "/". If a stack is preceded by the Shaped operator "$", its length will be modified to fit the length of the "previous" operand. If it's too…

Continue reading...

Hup, a scripting language

This is a stack. 1 2 3 And this is how you add 1 to each item of this stack. 1 2 3 + 1 The result of this expression is another stack. 2 3 4 There is no operator precedence. Instead, everything is left…

Continue reading...