Skip to main content
Post Closed as "Not suitable for this site" by πάντα ῥεῖ, L. F., Ben A, RoToRa, Graipher
deleted 1 character in body; edited tags
Source Link
L. F.
  • 9.7k
  • 2
  • 27
  • 70

This is my lex code to convert possibly nested for and do while loops into while loops, the. (Other control flows like if or switch are not supported.) The input program must be in a file called input.c and the output will be saved in a file called out.c. it is working for all cases I tried including nested loops, brace less for loops.Please Please review the code and give suggestions regarding improving it.

This is my lex code to convert for and do while loops into while loops, the input program must be in a file called input.c and the output will be saved in a file called out.c. it is working for all cases I tried including nested loops, brace less for loops.Please review the code and give suggestions regarding improving it.

This is my lex code to convert possibly nested for and do while loops into while loops. (Other control flows like if or switch are not supported.) The input program must be in a file called input.c and the output will be saved in a file called out.c. Please review the code and give suggestions regarding improving it.

deleted 114 characters in body
Source Link

This is my lex code to convert for and do while loops into while loops, the input program must be in a file called input.c and the output will be saved in a file called out.c. this currently doesn't work if the loop is inside if-else or switch-case statements or any braces. other than it is working for all cases I tried including nested loops, brace less for loops.Please review the code and give suggestions regarding improving it.

This is my lex code to convert for and do while loops into while loops, the input program must be in a file called input.c and the output will be saved in a file called out.c. this currently doesn't work if the loop is inside if-else or switch-case statements or any braces. other than it is working for all cases I tried including nested loops, brace less for loops.Please review the code and give suggestions regarding improving it.

This is my lex code to convert for and do while loops into while loops, the input program must be in a file called input.c and the output will be saved in a file called out.c. it is working for all cases I tried including nested loops, brace less for loops.Please review the code and give suggestions regarding improving it.

added 67 characters in body
Source Link

This is my lex code to convert for and do while loops into while loops, the input program must be in a file called input.c and the output will be saved in a file called out.c. this currently doesn't work if the loop is inside if-else or switch-case statements or any braces. other than it is working for all cases I tried including nested loops, brace less for loops.Please review the code and give suggestions regarding improving it.

This is my lex code to convert for and do while loops into while loops, the input program must be in a file called input.c and the output will be saved in a file called out.c. this currently doesn't work if the loop is inside if-else or switch-case statements or any braces. other than it is working for all cases I tried including nested loops, brace less for loops.

This is my lex code to convert for and do while loops into while loops, the input program must be in a file called input.c and the output will be saved in a file called out.c. this currently doesn't work if the loop is inside if-else or switch-case statements or any braces. other than it is working for all cases I tried including nested loops, brace less for loops.Please review the code and give suggestions regarding improving it.

Source Link
Loading