Re: neos Universal Compiler

Liste des GroupesRevenir à theory 
Sujet : Re: neos Universal Compiler
De : acm (at) *nospam* muc.de (Alan Mackenzie)
Groupes : comp.theory
Date : 18. Mar 2025, 13:12:02
Autres entêtes
Organisation : muc.de e.V.
Message-ID : <vrbnui$2d16$2@news.muc.de>
References : 1 2 3
User-Agent : tin/2.6.4-20241224 ("Helmsdale") (FreeBSD/14.2-RELEASE-p1 (amd64))
Mr Flibble <flibble@reddwarf.jmc.corp> wrote:
On Mon, 17 Mar 2025 21:43:47 +0000, Alan Mackenzie wrote:

Mr Flibble <flibble@reddwarf.jmc.corp> wrote:
Hi!

neos universal compiler (that can compile any programming language) is
successfully running the tokenization stage tokenizing a program
written in the neos reference language. #cpp #coding #compiler #compsci
#gamedev

/Flibble

How is neos (the tokenisation stage) essentially different from lex (the
~50 year old unix utility)?  What advantages will neos (if completed)
offer over a compiler based on a lex/yacc combination?

neos grammar definition is superior to lex's in that it is based on EBNF
(rather than a horrid mixture of C and regex) so is much more human
friendly potentially opening up language design to the masses possibly
making neos a technological singularity in the areas of language and
compiler design.

lex and yacc both use BNF, or something very like it.

lex/yacc generates a static frontend (that must be compiled) that is
different for each supported programming language whilst neos has just one
frontend which does not require compilation.

I can't see the essential difference from that paragraph.  neos will
have to interpret a syntactic description, just as lex and yacc do.
They may differ in how and when things get compiled, etc., which is to
be expected after 50 years of hardware and software development.

Still, I wish you all the best with this ambitious project.

/Flibble

--
Alan Mackenzie (Nuremberg, Germany).


Date Sujet#  Auteur
17 Mar 25 * Re: neos Universal Compiler3Alan Mackenzie
18 Mar 25 +- Re: neos Universal Compiler1Alan Mackenzie
18 Mar 25 `- Re: neos Universal Compiler1Mikko

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal