compiler construction - How to get the value of MSB bit of a token returned by LEX -


i have lex specification file below; if input of form r[0-7] return token "reg" yacc file. want "rotate right carry" operation in lex , yacc. need know value of r1[7] , r1[0] can use:

         r1[0] = cf          cf = r1[7] 

in yacc file, register values stored in regmem. how define number of bits register , how access them?


Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -