Skip to content

Instantly share code, notes, and snippets.

@hs256
Last active December 14, 2017 12:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hs256/fb7fa55949f57a26d4e43924e75adb1d to your computer and use it in GitHub Desktop.
Save hs256/fb7fa55949f57a26d4e43924e75adb1d to your computer and use it in GitHub Desktop.
YY_BUFFER_STATE b, temp;
b = yy_scan_string(variable, scanner); /*variable is valid input string to be parsed*/
temp = yy_create_buffer(f, YY_BUF_SIZE, scanner); /*f is input file to be scanned*/
yypush_buffer_state(temp, scanner);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment