lundi 27 avril 2020

Creates string parser to parse nested structures

I'm looking for information how to create parser to parse a strings like this:

[1,2,"abc",[2.2345,76,"n"],["abc",1,"c"],23,44]

Every value (number, decimal, string, null) in square brackets separated by comma and in brackets can be nested another square brackets with any number of values.

I need to create it in Java.

Q: Is there some library, algorithm / design strategy / design pattern, how to create such parser?

Aucun commentaire:

Enregistrer un commentaire