You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the generated lexers can only open files by name and the files must be mmap-able.
Therefore it would be nice to be capable of lexing from other sources, such as strings, sockets, pipes, stdin etc. (On 32bit machines there may also be a problem when mmap-ing very large files due to limited address space).
While lexing from strings is trivially added (just the constructor of the Lexer class has to be adapted), lexing from other sources is an interesting task, especially if the lookahead should be limited (compare the flex interactive mode).
Additionally a stack of input files would be nice to enable inclusion of source files.
The text was updated successfully, but these errors were encountered:
Partially solved: We now can parse from strings and non-mmappable files, which are slurped (this behavious is obviously non-optimal in many cases and non-interactive).
The switch to an InputBuffer which wraps the file for reading makes easy extension of byte-sources possible. Until now only string input and whole file input (via mmap or that is not possible by slurping the file). Other Strategies should be implemented.
Currently the generated lexers can only open files by name and the files must be mmap-able.
Therefore it would be nice to be capable of lexing from other sources, such as strings, sockets, pipes, stdin etc. (On 32bit machines there may also be a problem when mmap-ing very large files due to limited address space).
While lexing from strings is trivially added (just the constructor of the Lexer class has to be adapted), lexing from other sources is an interesting task, especially if the lookahead should be limited (compare the flex interactive mode).
Additionally a stack of input files would be nice to enable inclusion of source files.
The text was updated successfully, but these errors were encountered: