Posts

Showing posts from March 4, 2019

How to pause a custom built interpreter while debugging?

Image
0 1 I am developing a new custom programming language to perform some computations on numbers and display the results in a particular format. For this purpose, I am using Antlr4 for Lexical Analysis and Parsing, and am developing this in Java. I have been able to "execute" the program by overriding the visitor methods generated by Antlr4. I am now trying to add debugging functionality, and am trying to pause the execution upon hitting a breakpoint and then resume. Apart from this, I also need to support Step Through, Step In, Step Out, and Resume. Could someone please throw some light on how to accomplish this? java debugging antlr antlr4 interpreter share | improve this question ...

The number of non-isomorphic subgraphs of K3 is only 7

Image
1 $begingroup$ This comes from a book called Introduction to Graph Theory (Dover Books on Mathematics) at the end of the first chapter we are asked to draw all 17 subgraphs of k3 which is pretty easy to do. however the next problem 22 asks The number of non-isomorphic subgraphs of K3 is only 7. Draw them. I do not quite understand what I am comparing the subgraphs to. I could for instance say compare K3 with say another graph proving the 2 graphs are not isomorphic by comparing their subgraphs alternatively I could compare the k3 subgraphs to each other in which case I end up with 7 distinct types of subgraphs: 3 vertices 3 edges 3 vertices 2 edges 3 vertices 0 edges 2 vertices 1 edges 2 vertices 0 edges 1 vertices 0 edges 3 vertices 1 edges is the list above the correct answer? ...