In this post, as an example of using minilexer
, I’ll parse the stanford bunny 3D object into an R data structure and display it.
Lexing
In this post, as an example of using minilexer
, I’ll parse chess games into an R data frame.
In a prior post, I introduced the minilexer
package, and showed some basic uses of the core functions.
I need to read some foreign data formats into R data structures for manipulation. If the data was csv or yaml or json then I’d just use a package that someone else had written to read in the data. In my case, the data format doesn’t have its own package, so I need to write some parsing code from scratch.