Skip to content
This repository was archived by the owner on Jan 9, 2024. It is now read-only.

Template based text parsing ;-) (Not finished!)

Notifications You must be signed in to change notification settings

juzraai/reverse-template-engine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reverse Template Engine

Template based text parsing ;-)

Concept

RTE wants to be a universal solution to parse structured texts. It needs two input:

  • the text you want to parse
  • and the template, which defines patterns, places of output variables and controls the parser algorythm.

In the end it will produce a JSON-like output with the variables and their results.

Expectations

  • parsing
    • the main thing: capture groups and put the matched value into a variable
    • handle optional input lines
    • handle multiline input blocks
    • handle repeating input lines
    • handle repeating input blocks - be able to build a list
    • handle recursive blocks - "list in list" problem
    • maybe some extra parsing on captured values (replace, cast)
  • output
    • JSON-like output
    • mechanism to fill a POJO structure
    • mechanism to list used properties from template, and also verify a potential result POJO class

About

Template based text parsing ;-) (Not finished!)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages