Re: New symbolic/numeric/dynamic/intuitive programming language
- From: rem642b@xxxxxxxxx (Robert Maas, see http://tinyurl.com/uh3t)
- Date: Sun, 24 Feb 2008 13:51:39 -0800
(Asking about BNF used likewise in any modern programming language.)COBOL actually had at least one good idea: PICture clauses. ...
From: Michael Press <rub...@xxxxxxxxxxx>
Are you saying that lex and yacc fail this test?
Neither of those is a general-purpose programming language.
Furthermore lex uses regular expressions, not BNF.
I can't tell from 'man yacc' what format it uses for the syntax
spec. Google turns up <http://en.wikipedia.org/wiki/Yacc> which
says it uses something similar to BNF, but the resultant
(generated) parser requires a lexical analyzer, such as lex.
So I guess you meant the combination together? Still that's only a
way to generate C sourcecode for a parser for syntax, which would
then have to be somehow integrated into a program, which would
presumably have to be written in C. That C program would then have
to do all the work of building the abstract parse tree in RAM to
represent the syntax that had been parsed. Even so, I see no
obvious way to generate formatted output, i.e. reverse the parsing
task, using the same BNF definition of the syntax.
.
- Follow-Ups:
- Re: New symbolic/numeric/dynamic/intuitive programming language
- From: Michael Press
- Re: New symbolic/numeric/dynamic/intuitive programming language
- References:
- Re: New symbolic/numeric/dynamic/intuitive programming language
- From: Mark Nudelman
- Re: New symbolic/numeric/dynamic/intuitive programming language
- From: Aatu Koskensilta
- Re: New symbolic/numeric/dynamic/intuitive programming language
- From: Mark Nudelman
- Re: New symbolic/numeric/dynamic/intuitive programming language
- From: Robert Maas, see http://tinyurl.com/uh3t
- Re: New symbolic/numeric/dynamic/intuitive programming language
- From: Michael Press
- Re: New symbolic/numeric/dynamic/intuitive programming language
- Prev by Date: discrete structures
- Next by Date: Re: order of an element
- Previous by thread: Re: New symbolic/numeric/dynamic/intuitive programming language
- Next by thread: Re: New symbolic/numeric/dynamic/intuitive programming language
- Index(es):
Relevant Pages
|