Groups | Search | Server Info | Login | Register


Groups > comp.compilers > #3478

flex and bison grouping

Path csiph.com!weretis.net!feeder6.news.weretis.net!news.misty.com!news.iecc.com!.POSTED.news.iecc.com!nerds-end
From Archana Deshmukh <desharchana19@gmail.com>
Newsgroups comp.compilers
Subject flex and bison grouping
Date Thu, 18 May 2023 22:54:13 -0700 (PDT)
Organization Compilers Central
Sender johnl@iecc.com
Approved comp.compilers@iecc.com
Message-ID <23-05-022@comp.compilers> (permalink)
MIME-Version 1.0
Content-Type text/plain; charset="UTF-8"
Content-Transfer-Encoding 8bit
Injection-Info gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="19871"; mail-complaints-to="abuse@iecc.com"
Keywords lex, yacc, question
Posted-Date 19 May 2023 15:56:05 EDT
X-submission-address compilers@iecc.com
X-moderator-address compilers-request@iecc.com
X-FAQ-and-archives http://compilers.iecc.com
Xref csiph.com comp.compilers:3478

Show key headers only | View raw


Hello,

I would like to parse following line using bison and flex.

Any help / suggestions are most welcome.

efg @main(%data: r[(1, 2, 4, 4), float32], %param_1: or[(2, 1, 5, 5),
float32], %param_2: or[(20), float32], %param_3: or[(5, 2, 5, 5), float32],
%param_4: or[(50), float32], %param_5: or[(50, 80), float32], %param_6:
Tensor[(50), float32], %param_7: or[(10, 50), float32], %param_8: or[(20),
float32]

Best Regards,
Archana Deshmukh
[This looks very straightforward.  The Flex tokens are keywords, numbers,
and punctuation, the bison rules would be a %param or %data expression,
a list of such expressions, and so on.  Is there some particular problem
you are encountering? -John
Cheap plug: there's always my book https://amzn.to/3IrtPFS ]

Back to comp.compilers | Previous | NextNext in thread | Find similar


Thread

flex and bison grouping Archana Deshmukh <desharchana19@gmail.com> - 2023-05-18 22:54 -0700
  Re: flex and bison grouping Archana Deshmukh <desharchana19@gmail.com> - 2023-05-24 23:20 -0700
    Re: flex and bison grouping gah4 <gah4@u.washington.edu> - 2023-05-25 17:08 -0700
      Re: flex and bison grouping Hans-Peter Diettrich <DrDiettrich1@netscape.net> - 2023-05-27 02:08 +0200

csiph-web