home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.compilers      Compiler construction, theory, etc. (Mod      2,753 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 2,696 of 2,753   
   Archana Deshmukh to All   
   flex and bison grouping   
   18 May 23 22:54:13   
   
   From: desharchana19@gmail.com   
      
   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 ]   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca