Text syntax parser/loader
Added support for list x y; Uses a mechanism to parse as unknown XML body and post-parsing replace with list keys Fixed example and test to work with new TEXT syntax
This commit is contained in:
parent
0c79298e76
commit
b6bfcb69f7
14 changed files with 227 additions and 377 deletions
|
|
@ -108,16 +108,16 @@ save("Save candidate configuration to XML file") <filename:string>("Filename (lo
|
|||
}
|
||||
load("Load configuration from XML file") <filename:string>("Filename (local filename)"),load_config_file("filename", "replace");{
|
||||
replace("Replace candidate with file contents"), load_config_file("filename", "replace");{
|
||||
cli("Replace candidate with file containing CLI commands"), load_config_file("","filename", "replace", "cli");
|
||||
xml("Replace candidate with file containing XML"), load_config_file("","filename", "replace", "xml");
|
||||
json("Replace candidate with file containing JSON"), load_config_file("","filename", "replace", "json");
|
||||
text("Replace candidate with file containing TEXT"), load_config_file("","filename", "replace", "text");
|
||||
cli("Replace candidate with file containing CLI commands"), load_config_file("filename", "replace", "cli");
|
||||
xml("Replace candidate with file containing XML"), load_config_file("filename", "replace", "xml");
|
||||
json("Replace candidate with file containing JSON"), load_config_file("filename", "replace", "json");
|
||||
text("Replace candidate with file containing TEXT"), load_config_file("filename", "replace", "text");
|
||||
}
|
||||
merge("Merge file with existent candidate"), load_config_file("filename", "merge");{
|
||||
cli("Merge candidate with file containing CLI commands"), load_config_file("","filename", "merge", "cli");
|
||||
xml("Merge candidate with file containing XML"), load_config_file("","filename", "merge", "xml");
|
||||
json("Merge candidate with file containing JSON"), load_config_file("","filename", "merge", "json");
|
||||
text("Merge candidate with file containing TEXT"), load_config_file("","filename", "merge", "text");
|
||||
cli("Merge candidate with file containing CLI commands"), load_config_file("filename", "merge", "cli");
|
||||
xml("Merge candidate with file containing XML"), load_config_file("filename", "merge", "xml");
|
||||
json("Merge candidate with file containing JSON"), load_config_file("filename", "merge", "json");
|
||||
text("Merge candidate with file containing TEXT"), load_config_file("filename", "merge", "text");
|
||||
}
|
||||
}
|
||||
example("This is a comment") <var:int32>("Just a random number"), mycallback("myarg");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue