Thread: Lex and Yacc

  1. #1
    UCF Mystic_Skies's Avatar
    Join Date
    Oct 2004
    Posts
    33

    Lex and Yacc

    Hello,
    I have a class where I'm supposed to create a program for lex and then one for yacc which on my school olympus account is flex and bison. I was wondering how do I go about creating editing the files? Can I use flex and bison to create and edit them or are they just for running the programs. I've been looking around online and cannot seem to find any information on it. Should I try to use something like the VI editor or is there a way to use the other two commands to start on the programs?

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Input files to lex and yacc are regular text files just like C programs are, so any text editor will do.
    As for the syntax etc of the contents of these files, well that's a whole different ball game

  3. #3
    UCF Mystic_Skies's Avatar
    Join Date
    Oct 2004
    Posts
    33
    Alright thanks. I tried using VI editor but it seemed so complicated and then just found pico. Seems a lot easier. Thanks though.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Three Address Code generation using Lex, Yacc
    By Raman in forum C Programming
    Replies: 1
    Last Post: 11-04-2008, 09:04 AM
  2. Anybody into lex and yacc ?
    By spank in forum Tech Board
    Replies: 8
    Last Post: 07-20-2007, 03:30 AM
  3. using YACC and lex to make your own shell...
    By YankeePride13 in forum Linux Programming
    Replies: 2
    Last Post: 12-28-2005, 10:00 AM
  4. Yacc and Lex
    By Chronom1 in forum C++ Programming
    Replies: 1
    Last Post: 03-09-2005, 08:03 AM
  5. Code for C Compiler using lex and yacc
    By jaadugary in forum C Programming
    Replies: 0
    Last Post: 05-10-2003, 09:11 AM