Added support for // comments in liberty parser
authorClifford Wolf <clifford@clifford.at>
Sat, 25 Jan 2014 05:32:16 +0000 (06:32 +0100)
committerClifford Wolf <clifford@clifford.at>
Sat, 25 Jan 2014 05:32:16 +0000 (06:32 +0100)
passes/techmap/libparse.cc

index 8f4a1a5fa521759ef4cf44574c763973bf5cac8c..8cbb8e2be81dc5de11ce77becd6b63c8199fbbbd 100644 (file)
@@ -126,6 +126,11 @@ int LibertyParser::lexer(std::string &str)
                                        line++;
                        }
                        return lexer(str);
+               } else if (c == '/') {
+                       while (c > 0 && c != '\n')
+                               c = fgetc(f);
+                       line++;
+                       return lexer(str);
                }
                ungetc(c, f);
                // fprintf(stderr, "LEX: char >>/<<\n");