Heray-Was-Here
Server : Apache
System : Linux vps103298.mylogin.co 4.18.0-513.11.1.el8_9.x86_64 #1 SMP Wed Jan 17 02:00:40 EST 2024 x86_64
User : calvet ( 273824)
PHP Version : 7.4.33
Disable Function : NONE
Directory :  /usr/share/doc/re2c/examples/input_custom/simple/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/share/doc/re2c/examples/input_custom/simple/README
Build with "--input custom" re2c switch.

These are three examples of "--input custom" usage:

- input_custom_default.re:
    implements default re2c input model (pointers to plain buffer)

- input_custom_fgetc:
    implements C-style file input (using <stdio.h>)

- input_custom_fgetc:
    implements std::istringstream input

Note that these examples are very simple and don't need
to implement YYFILL; the only reason they don't use
"re2c:yyfill:enable = 0;" is to keep YYLESSTHAN and YYLIMIT
(for the sake of example).

In real-life programs one will need to care for correct
end-of-input handling.

Hry