Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.compilers > #1613

BNF-based HLL code generation & associated user(tool)

From Seima Rao <seimarao@gmail.com>
Newsgroups comp.compilers
Subject BNF-based HLL code generation & associated user(tool)
Date 2015-09-25 14:00 +0530
Organization Compilers Central
Message-ID <15-09-018@comp.compilers> (permalink)

Show all headers | View raw


Hi,

    I have a requirement wherein, I would need to implement a tool
    that generates C code from the C grammar. For that matter C++.

    This is unlike what a compiler does.

    The C grammar is embedded inside the tool and some handholding
    (aka menu) would put proper identifiers and context(i.e. particular
    production to generate from).

    The tool will not have anything to do with semantics, though so
    this makes the job easier. No parsing is required.

    My question is , is this top-level generation of language code
    from grammar(by me) & semantics, etc(by anyone) been done
    historically ?

    My basic motive in asking this is to understand, how usefully
    have dimensions internal and external been inputted to
    such "compilers".

    I will give an example:

    Say, I intend to inspect 'C' codes for HLL-driven parallelism
   like EPIC/VLIW, Multithreading.

   Then grossly speaking, a dimension of 'parallelism' and
    then a subdimension of 'IPC' can be input to the tool
   along with other general-purpose inputs which I have mentioned
   earlier. This will allow someone to inspect VLIW C snippets
   via an automated system.

   Before proceeding to implement this tool, I would like your
   help in assimilating if others have attempted before and
   any suggestions that you want to make.

Sincerely,
Seima Rao.
[Sounds sort of like the syntax directed editors that were popular 30 years ago. -John]

Back to comp.compilers | Previous | Next | Find similar | Unroll thread


Thread

BNF-based HLL code generation & associated user(tool) Seima Rao <seimarao@gmail.com> - 2015-09-25 14:00 +0530

csiph-web