Skip to content

Commit 828e2f4

Browse files
authored
Merge pull request #28 from isaacmaffeis/split_project
updated MainClass text
2 parents 3fb2d5b + e8b2a35 commit 828e2f4

File tree

6 files changed

+35
-27
lines changed

6 files changed

+35
-27
lines changed

asmetal2java_asmgen/.idea/encodings.xml

-7
This file was deleted.

asmetal2java_asmgen/.idea/misc.xml

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

asmetal2java_asmgen/.idea/vcs.xml

-7
This file was deleted.

asmetal2java_asmgen/src/org/asmeta/asm2java/asm/main/MainClass.java

+15-9
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
import org.asmeta.asm2java.main.JavaGenerator;
2828
import org.asmeta.asm2java.main.TranslatorOptions;
2929
import org.asmeta.parser.ASMParser;
30-
3130
import asmeta.AsmCollection;
3231

3332
/**
@@ -360,24 +359,31 @@ private void execute (CommandLine line, Options options) {
360359
* @param args the command-line arguments.
361360
*/
362361
public static void main(String[] args) {
362+
363+
String asciiart =
364+
"\n _ _ _ ____ _ \n"
365+
+ " / \\ ___ _ __ ___ ___| |_ __ _| |___ \\ (_) __ ___ ____ _ \n"
366+
+ " / _ \\ / __| '_ ` _ \\ / _ \\ __/ _` | | __) || |/ _` \\ \\ / / _` |\n"
367+
+ " / ___ \\\\__ \\ | | | | | __/ || (_| | |/ __/ | | (_| |\\ V / (_| |\n"
368+
+ "/_/ \\_\\___/_| |_| |_|\\___|\\__\\__,_|_|_____|/ |\\__,_| \\_/ \\__,_|\n"
369+
+ " |__/ \n"
370+
+ "\t\t\t\t\t __ _ ___ _ __ ___ __ _ ___ _ __ \n"
371+
+ "\t\t\t\t\t / _` / __| '_ ` _ \\ / _` |/ _ \\ '_ \\ \n"
372+
+ "\t\t\t\t\t| (_| \\__ \\ | | | | | (_| | __/ | | |\n"
373+
+ "\t\t\t\t\t \\__,_|___/_| |_| |_|\\__, |\\___|_| |_|\n"
374+
+ "\t\t\t\t\t |___/ ";
363375

364376
try {
365377
MainClass main = new MainClass ();
366378
Options options = getCommandLineOptions();
367379
CommandLine line = main.parseCommandLine(args, options);
368-
logger.info("\r\n _ _ _ ____ _ \r\n"
369-
+ " / \\ ___ _ __ ___ ___| |_ __ _| |___ \\ (_) __ ___ ____ _ \r\n"
370-
+ " / _ \\ / __| '_ ` _ \\ / _ \\ __/ _` | | __) || |/ _` \\ \\ / / _` |\r\n"
371-
+ " / ___ \\\\__ \\ | | | | | __/ || (_| | |/ __/ | | (_| |\\ V / (_| |\r\n"
372-
+ "/_/ \\_\\___/_| |_| |_|\\___|\\__\\__,_|_|_____|/ |\\__,_| \\_/ \\__,_|\r\n"
373-
+ " |__/ \r\n");
374-
logger.info("Performing requested operation ...");
380+
logger.info(asciiart);
375381
if (line == null || line.hasOption("help") || line.getOptions().length == 0) {
376382
HelpFormatter formatter = new HelpFormatter();
377383
// Do not sort
378384
formatter.setOptionComparator(null);
379385
// Header and footer strings
380-
String header = "Asmetal2java\n\n";
386+
String header = "Asmetal2java_asmgen";
381387
String footer = "\nthis project is part of Asmeta, see https://github.com/asmeta/asmeta "
382388
+ "for information or to report problems";
383389

asmetal2java_codegen/src/org/asmeta/asm2java/main/MainClass.java

+17-3
Original file line numberDiff line numberDiff line change
@@ -324,18 +324,32 @@ private void execute (CommandLine line, Options options) {
324324
* @param args the command-line arguments.
325325
*/
326326
public static void main(String[] args) {
327-
327+
328+
String asciiart =
329+
"\n _ _ _ ____ _ \n"
330+
+ " / \\ ___ _ __ ___ ___| |_ __ _| |___ \\ (_) __ ___ ____ _ \n"
331+
+ " / _ \\ / __| '_ ` _ \\ / _ \\ __/ _` | | __) || |/ _` \\ \\ / / _` |\n"
332+
+ " / ___ \\\\__ \\ | | | | | __/ || (_| | |/ __/ | | (_| |\\ V / (_| |\n"
333+
+ "/_/ \\_\\___/_| |_| |_|\\___|\\__\\__,_|_|_____|/ |\\__,_| \\_/ \\__,_|\n"
334+
+ " |__/ \n"
335+
+ "\t\t\t\t\t _ \n"
336+
+ "\t\t\t\t\t ___ ___ __| | ___ __ _ ___ _ __ \n"
337+
+ "\t\t\t\t\t / __/ _ \\ / _` |/ _ \\/ _` |/ _ \\ '_ \\ \n"
338+
+ "\t\t\t\t\t| (_| (_) | (_| | __/ (_| | __/ | | |\n"
339+
+ "\t\t\t\t\t \\___\\___/ \\__,_|\\___|\\__, |\\___|_| |_|\n"
340+
+ "\t\t\t\t\t |___/ ";
341+
328342
try {
329343
MainClass main = new MainClass ();
330344
Options options = getCommandLineOptions();
331345
CommandLine line = main.parseCommandLine(args, options);
332-
logger.info("Performing requested operation ...");
346+
logger.info(asciiart);
333347
if (line == null || line.hasOption("help") || line.getOptions().length == 0) {
334348
HelpFormatter formatter = new HelpFormatter();
335349
// Do not sort
336350
formatter.setOptionComparator(null);
337351
// Header and footer strings
338-
String header = "Asmetal2java\n\n";
352+
String header = "Asmetal2java_codegen";
339353
String footer = "\nthis project is part of Asmeta, see https://github.com/asmeta/asmeta "
340354
+ "for information or to report problems";
341355

asmetal2java_examples/.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/target/
2+
/.idea/

0 commit comments

Comments
 (0)