Apply formating to all files. CLeanup

This commit is contained in:
IlyaShurupov 2023-10-22 17:07:28 +03:00 committed by Ilya Shurupov
parent b4ae5dde77
commit 91fb72bd49
928 changed files with 14515 additions and 21479 deletions

View file

@ -1,8 +1,8 @@
#include "NewPlacement.hpp"
#include "Parser.hpp"
#include "CommandLine.hpp"
#include "Parser.hpp"
using namespace tp;
@ -29,7 +29,8 @@ void run(const String& source) {
grammar.generateSentences(sentences);
printf("Example sentences formed from grammar: \n");
for (auto sentence : sentences) tp::CfGrammar::printSentence(sentence.data());
for (auto sentence : sentences)
tp::CfGrammar::printSentence(sentence.data());
CfGrammar::deinitializeCfGrammarParser(state);
}
@ -50,7 +51,7 @@ int main(int argc, const char* argv[]) {
printf("\n");
CommandLine cmd = {
{ "grammar", CommandLine::Arg::STR },
{ "grammar", CommandLine::Arg::STR },
};
if (!cmd.parse((char) argc, argv, true, 1)) {
@ -73,7 +74,6 @@ int main(int argc, const char* argv[]) {
grammar.resize((String::Index) size);
file.readBytes(grammar.write(), size);
run(grammar);
file.disconnect();