Using Yacc and Lex to parse a char * in C, and execute a function.

2020-03-20 Thread N07070
Hello all, I am a student of computer science, and I am currently writing an implementation of CRobots with Yacc and Lex. Currently, the program works like this : - Tokens are defined in the .lex file - The grammar is defined in the .yacc file - The main function is defined in a .c file, which

Re: Using Yacc and Lex to parse a char * in C, and execute a function.

2020-03-20 Thread Akim Demaille
Hi N07070, > Le 20 mars 2020 à 16:49, N07070 a écrit : > > What I would like, is to be able to call the yyparse function, give it a > string, yyparse doesn't care about where the text is coming from, that's the job of the scanner. That part is something you'll have to find in your scanner gene