Deutsch   English   Français   Italiano  
<vrbnui$2d16$2@news.muc.de>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!news.mixmin.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mail
From: Alan Mackenzie <acm@muc.de>
Newsgroups: comp.theory
Subject: Re: neos Universal Compiler
Date: Tue, 18 Mar 2025 12:12:02 -0000 (UTC)
Organization: muc.de e.V.
Message-ID: <vrbnui$2d16$2@news.muc.de>
References: <UX6BP.512735$Kb9a.408485@fx16.ams4> <vra52j$jnv$1@news.muc.de> <5C5CP.728270$J61.230389@fx08.ams4>
Injection-Date: Tue, 18 Mar 2025 12:12:02 -0000 (UTC)
Injection-Info: news.muc.de; posting-host="news.muc.de:2001:608:1000::2";
	logging-data="78886"; mail-complaints-to="news-admin@muc.de"
User-Agent: tin/2.6.4-20241224 ("Helmsdale") (FreeBSD/14.2-RELEASE-p1 (amd64))
Bytes: 2382
Lines: 40

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).