source: proto/pablo/src/compiler/codeGenerator/visitors/helpers/Labeller.java @ 2671

Last change on this file since 2671 was 2671, checked in by ksherdy, 6 years ago

Added code generator package.

File size: 273 bytes
Line 
1package compiler.codeGenerator.visitors.helpers;
2
3public class Labeller {
4        private long nextNumber = 1;
5        String labelBase = "temp_";
6       
7        public String newLabel() {
8                return labelBase + nextNumber++;
9        }
10        public void setBase(String baseString) {
11                labelBase = baseString;
12        }
13}
Note: See TracBrowser for help on using the repository browser.