Skip to content

Commit

Permalink
Added support for // comments in liberty parser
Browse files Browse the repository at this point in the history
  • Loading branch information
cliffordwolf committed Jan 25, 2014
1 parent a139b49 commit c1ed260
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions passes/techmap/libparse.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit c1ed260

Please sign in to comment.