Putting a simple expression language into java

后端 未结 4 1746
天涯浪人
天涯浪人 2020-12-06 19:29

Im my Java application, users can specify how to name their files from a series of metadata fields. i.e

%artist% - %album% - %disctotal%

4条回答
  •  一生所求
    2020-12-06 20:10

    One option would be to use a parser generator.

    ANTLR is one such tool for Java. If you're a novice at creating grammars, you'll find the grammar IDE ANTLRWorks useful.

提交回复
热议问题