| > What do the cmdline options mean?
for bison
-p, --name-prefix=PREFIX
prepend PREFIX to the external symbols
-d produce eader file
-r, --report=THINGS
also produce details on the automaton
-o, --output=FILE
leave output to FILE
For flex
-t, --stdout
write scanner on stdout instead of lex.yy.c
-B, --batch
generate batch scanner (opposite of -I)
>
> On 10/20/12, jpff@cs.bath.ac.uk wrote:
>>
>> But do note that generated shift/reduce parsers are nit the kind of C
>> you
>> want to read
>>
>> Bison is easy -- syntax production rules and what to do on a firing of
>> the
>> rule
>>
>> Flex is juat a FSM with actions.
>>
>> The generated C is horrid -- I tell my students to read it once and then
>> never again....
>>
>> =John
>>
>>> flex -B -t Engine/csound_orc.l > csound_orclex.c
>>> flex -B Engine/csound_pre.lex > csound_prelex.c
>>> bison -d -pcsound_orc --report=itemset -o csound_orcparse.c
>>> Engine/csound_orc.y
>>>
>>> On 19 Oct 2012, at 23:40, Adam Puckett wrote:
>>>
>>>> Continuing in my exploration of the codebase of Csound, I'm curious as
>>>> to how the csound_orc_* files work. I don't have enough of an
>>>> understanding of flex or bison syntax, but I know C fairly well. How
>>>> do I compile the parser files to see their generated C?
>>>>
>>>> Thanks,
>>>> Adam
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Everyone hates slow websites. So do we.
>>>> Make your web apps faster with AppDynamics
>>>> Download AppDynamics Lite for free today:
>>>> http://p.sf.net/sfu/appdyn_sfd2d_oct
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>> Dr Victor Lazzarini
>>> Senior Lecturer
>>> Dept. of Music
>>> NUI Maynooth Ireland
>>> tel.: +353 1 708 3545
>>> Victor dot Lazzarini AT nuim dot ie
>>>
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Everyone hates slow websites. So do we.
>>> Make your web apps faster with AppDynamics
>>> Download AppDynamics Lite for free today:
>>> http://p.sf.net/sfu/appdyn_sfd2d_oct
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>>
>>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Everyone hates slow websites. So do we.
>> Make your web apps faster with AppDynamics
>> Download AppDynamics Lite for free today:
>> http://p.sf.net/sfu/appdyn_sfd2d_oct
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_sfd2d_oct
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
>
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net |