File tree Expand file tree Collapse file tree 1 file changed +24
-7
lines changed Expand file tree Collapse file tree 1 file changed +24
-7
lines changed Original file line number Diff line number Diff line change @@ -294,14 +294,31 @@ string Kast::KToken::escape(const string & str) {
294294// *** Kast::KSequence
295295
296296void Kast::KSequence::print (Sort parentSort, function<void (Sort)> printChild) const {
297- if (size == 0 ) {
298- cout << (Kore ? " dotk{}()" : " .K" );
299- }
300- for (int i = 0 ; i < size; i++) {
301- printChild (Sort::KITEM);
302- if (i != size - 1 ) {
303- cout << (Kore ? " , " : " ~>" );
297+
298+ if (Kore) {
299+ for (int i = 0 ; i < size; i++) {
300+ cout << " kseq{}(" ;
301+ printChild (Sort::KITEM);
302+ cout << " , " ;
303+ }
304+
305+ cout << " dotk{}()" ;
306+
307+ for (int i = 0 ; i < size; i++) {
308+ cout << " )" ;
304309 }
310+
311+ } else {
312+ if (size == 0 ) {
313+ cout << " .K" ;
314+ }
315+ for (int i = 0 ; i < size; i++) {
316+ printChild (Sort::KITEM);
317+ if (i != size - 1 ) {
318+ cout << " ~>" ;
319+ }
320+ }
321+
305322 }
306323}
307324
You can’t perform that action at this time.
0 commit comments