Re: New symbolic/numeric/dynamic/intuitive programming language



COBOL actually had at least one good idea: PICture clauses. ...
(Asking about BNF used likewise in any modern programming language.)
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.
.



Relevant Pages

  • Re: New symbolic/numeric/dynamic/intuitive programming language
    ... Furthermore lex uses regular expressions, not BNF. ... I can't tell from 'man yacc' what format it uses for the syntax ...
    (sci.math)
  • Re: A few syntax questions
    ... I think putting them in the 'action-stmt' syntax rule ... If I were to redo the bnf from scratch, ... I guess that means that a standard conforming compiler is supposed to overflow. ... I am hoping that F2003 features will regain some respect for Fortran in CS departments,, and not just be coinsidered an old archaic language for old programs, but such strong support of archaic Fortran standards is a major reason why Fortran popularity continues to dwindle. ...
    (comp.lang.fortran)
  • Re: A few syntax questions
    ... I think putting them in the 'action-stmt' syntax rule ... If I were to redo the bnf from scratch, ... I guess that means that a standard conforming compiler is supposed to overflow. ... I am hoping that F2003 features will regain some respect for Fortran in CS departments,, and not just be coinsidered an old archaic language for old programs, but such strong support of archaic Fortran standards is a major reason why Fortran popularity continues to dwindle. ...
    (comp.lang.fortran)
  • Re: A few syntax questions
    ... I think putting them in the 'action-stmt' syntax rule ... If I were to redo the bnf from scratch, ... I guess that means that a standard conforming compiler is supposed to overflow. ... I am hoping that F2003 features will regain some respect for Fortran in CS departments,, and not just be coinsidered an old archaic language for old programs, but such strong support of archaic Fortran standards is a major reason why Fortran popularity continues to dwindle. ...
    (comp.lang.fortran)
  • Re: A few syntax questions
    ... I think putting them in the 'action-stmt' syntax rule ... If I were to redo the bnf from scratch, ... vendors will keep supporting fixed source form and will object to new ... if you are going to say that reallocating doesn't ...
    (comp.lang.fortran)