Visit Jeremy's Blog.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 06-03-2011, 12:46 PM   #1
LQ Newbie
Registered: Dec 2010
Posts: 22

Rep: Reputation: 8
Question [Flex & Bison] How to check which state Flex is in?

Is it possible to have different 'actions' in Flex, based on its state? That is,
if (Flex is in INITIAL state)
    "do something"
    "print macro statements in file"
This is for adding the .macro ability to my lame assembler. I'll admit it is an ugly (and expensive) hack, but it'll work ... I think.

Any advice on making the .macro function in Flex & Bison are very welcome.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Flex & Bison: html templates neioo Programming 1 03-23-2011 05:48 PM
Is there any support for bison-bridge and bison-locations in flex on windows systems? rami alkhateeb Linux - Software 0 12-29-2010 10:10 AM
bison / flex zaman Programming 1 08-16-2005 11:19 AM
Problem with binutils first pass / bison & flex installation peristaltic Linux From Scratch 3 03-20-2005 11:17 AM
[flex & bison] Why does my rule fail from line 2? chuanyung Programming 0 07-30-2004 05:21 AM

All times are GMT -5. The time now is 01:20 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration