First draft grammar of Xeph, a non-pure functional language, a superset of ASDL. Input is needed. (+ guide on reading EBNF)

Please tell me what you honestly think of it — this is not a ‘labor of love’ exactly, I only spent a few hours on it. But I think its a strong foundation for what comes next. The implementation, I hope, will be an orgy of love!

I am intentionally not giving an example because I want people to give one, just to make sure how ‘comprehensible’ my grammar-writing skills are. So, what do you think it looks like?

I will give an example for the upcoming versions.

Also, I think there is not need for an example, it’s just your run-off-the-mill ML-like language.

Thanks.

tsonfeir,
@tsonfeir@lemm.ee avatar

rulese?

ChubakPDP11,

I don’t understand. Am I doing something against the rules of this instance? I have posted stuff like this before?

dsemy,

I think he means this typo:

[ and ] mark optional rulese, for example, [ ‘a’ ] could mean a or an empty language (sigma).

ChubakPDP11,

Uh apologies. I did not realize that.

Corbin,

It looks alright. You’ll have to use it for a few months before knowing whether it’s comfortable.

To be honest, I’m not a fan of variables; I’m in the tacit/concatenative camp. But I think it’s good to try new things and learn for yourself why they are good or bad.

ChubakPDP11,

You showed up! So, about this, you see how ‘let’ binding does not allow you to add parameters right? (the val binding does) I think this is a good place to use tacitness. I will basically add Perl-like, POSX-shell-like features. To further add concatativenss, I shall add OCaml-style shell (|>). I will take a page from F#'s book and add a ‘<|’ too. I was originally planning to have these two operators be defined orthogonal-like via the operator binders (infix, infixr etc) but I think it’s necessary to bake them in.

So any other cool stuff? I plan on having intrinsics like ‘add’ and ‘or’ etc. Since it is translated down to C, I will add a two-way FFI, similar to the language I am writing it in, Cyclone Scheme.

THANKS.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • programming@programming.dev
  • rosin
  • thenastyranch
  • tacticalgear
  • ethstaker
  • InstantRegret
  • DreamBathrooms
  • ngwrru68w68
  • magazineikmin
  • Youngstown
  • mdbf
  • khanakhh
  • slotface
  • GTA5RPClips
  • kavyap
  • JUstTest
  • everett
  • cisconetworking
  • Durango
  • modclub
  • osvaldo12
  • tester
  • Leos
  • cubers
  • normalnudes
  • megavids
  • anitta
  • provamag3
  • lostlight
  • All magazines