1*7e382390SJung-uk Kim /* libmain - flex run-time support library "main" function */ 2*7e382390SJung-uk Kim 3*7e382390SJung-uk Kim /* This file is part of flex. */ 4*7e382390SJung-uk Kim 5*7e382390SJung-uk Kim /* Redistribution and use in source and binary forms, with or without */ 6*7e382390SJung-uk Kim /* modification, are permitted provided that the following conditions */ 7*7e382390SJung-uk Kim /* are met: */ 8*7e382390SJung-uk Kim 9*7e382390SJung-uk Kim /* 1. Redistributions of source code must retain the above copyright */ 10*7e382390SJung-uk Kim /* notice, this list of conditions and the following disclaimer. */ 11*7e382390SJung-uk Kim /* 2. Redistributions in binary form must reproduce the above copyright */ 12*7e382390SJung-uk Kim /* notice, this list of conditions and the following disclaimer in the */ 13*7e382390SJung-uk Kim /* documentation and/or other materials provided with the distribution. */ 14*7e382390SJung-uk Kim 15*7e382390SJung-uk Kim /* Neither the name of the University nor the names of its contributors */ 16*7e382390SJung-uk Kim /* may be used to endorse or promote products derived from this software */ 17*7e382390SJung-uk Kim /* without specific prior written permission. */ 18*7e382390SJung-uk Kim 19*7e382390SJung-uk Kim /* THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR */ 20*7e382390SJung-uk Kim /* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED */ 21*7e382390SJung-uk Kim /* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR */ 22*7e382390SJung-uk Kim /* PURPOSE. */ 23*7e382390SJung-uk Kim 24*7e382390SJung-uk Kim #include <stdlib.h> 25*7e382390SJung-uk Kim 26*7e382390SJung-uk Kim extern int yylex (void); 27*7e382390SJung-uk Kim main(int argc,char * argv[])28*7e382390SJung-uk Kimint main (int argc, char *argv[]) 29*7e382390SJung-uk Kim { 30*7e382390SJung-uk Kim (void)argc; 31*7e382390SJung-uk Kim (void)argv; 32*7e382390SJung-uk Kim 33*7e382390SJung-uk Kim while (yylex () != 0) ; 34*7e382390SJung-uk Kim 35*7e382390SJung-uk Kim exit(0); 36*7e382390SJung-uk Kim } 37