排序
A Context-Free Grammar Tutorial
A Context-Free Grammar Tutorial, I recently came across a tutorial on context-free grammars with several examples of common patterns you can find in those grammars and I thought to...
Use JFlex and Jacc Together
Use JFlex and Jacc Together, Just as JFlex generates lexers, Jacc generates parsers, but what’s the difference? A lexer can recognize words and a parser can recognize whole senten...
Meet JFlex
Meet JFlex, JFlex is a scanner generator for Java. A scanner generator will generate a scanner (a.k.a. lexer) for you instead of you having to write one yourself. JFlex is modeled ...
Use JFlex to Count Words
Use JFlex to Count Words, In the previous story we got to meet JFlex, a tool for generating lexers in Java. The example lexer was contrived, banal and not all that useful so let’s...
Java: Infer Column Widths of a Fixed-Width Text File
Java: Infer Column Widths of a Fixed-Width Text File, Delimited Files and Fixed-Width Files Flat text files containing tables of data are usually organised in one of two ways: as d...
How to extract text and metadata from text and presentation templates
How to extract text and metadata from text and presentation templates,Extract text and metadata from a number of different text and presentation templates on Java platform using Gr...
The Power of Regular Expressions
The Power of Regular Expressions,Regular expressions (or regex) is a concept that is relatively simple to learn, yet can have a huge impact on your code's readability, maintainabil...