Skip to content

Commit

Permalink
better comments
Browse files Browse the repository at this point in the history
  • Loading branch information
fuhrmanator committed Feb 1, 2021
1 parent 4084f09 commit 8a05931
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mse2puml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ interface Association {
const grammar = fs.readFileSync('mse-famixjava.pegjs', 'utf-8');
const parser = generate(grammar);

// Load the MSE file, this should ideally not be hard-coded
const mseFileName = 'sample-famix-java-simple.mse';
let sampleMSE = fs.readFileSync(mseFileName, 'utf-8');
const mseJSON:MSEDocument = new MSEDocument(parser.parse(sampleMSE));
Expand Down Expand Up @@ -41,7 +42,7 @@ mseJSON.nodes.forEach(element => {
console.log('@startuml');
console.log('skinparam style strictuml');
console.log('title Object diagram for ' + mseFileName + '\n');
console.log(sampleJavaFileNotePUML); // put the note in the UML
console.log(sampleJavaFileNotePUML); // put the note in the UML, don't use for general case
mseJSON.nodes.forEach(element => {
console.log(toPlantUML(element));
});
Expand Down

0 comments on commit 8a05931

Please sign in to comment.