Ben Hanson
Ben Hanson
All the tests pass again and I have put in an early return, so the change should be much cleaner. I saw your comment about MSVC, but as the early...
Hello, I am the author of lexertl and parsertl which are the underlying C++ libraries that parle uses. See http://www.benhanson.net/lexertl.html and http://www.benhanson.net/parsertl.html lexertl::rules rules; lexertl::state_machine sm; rules.insert_macro("a", "a"); rules.insert_macro("b", "{a}b");...
I first learned about lex and yacc (as it was back then) back in 1990. The techniques always seemed impressive, but the generated C code messy (this was before C++...
If I can get a C++20/constexpr version of the libraries going, then a parser to read the serialisation format can be built at compile time, which would then justify loading...
std::ostringstream os; std::string str; parsertl::debug::dump(grules, os); str = os.str(); // Do whatever you need to do with str.
Hi Andrew, You can contact me on my work email which is Ben dot Hanson at tikit dot com, and/or my gmail which is jamin dot hanson at gmail dot...
Yes, I was hoping to be able to use the lexer without the parser. If you have the ability for your regexes to have numeric ids you just include that...
There are a couple of conventions: - If there is no match for the lexer at the current position, you usually return a single character (I return an id of...
> > It's all about c++ and not something else. > > If that's the case, it would be nice to disaggregate the cpp2 features and prepare wording for them...
@weltling In fact I could just output the table numbers as ASCII and use C++ streams to stream them back in etc. In the past it always seemed kind of...