Contains the source code from the course work throughout my undergraduate Computer Engineering degree at Brigham Young University. There is a mixture of Go, Python, C, C++, Java, VHDL, Verilog, Matlab, Bash, Assembly, etc..
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
521B

  1. #include "token.h"
  2. token::token(string type, string character, int line_num) :
  3. type(type), character(character), line_num(line_num) {}
  4. ostream & operator<<(ostream & os, token tk) {
  5. os << "(" << tk.type
  6. << ",\"" << tk.character
  7. << "\"," << tk.line_num << ")";
  8. return os;
  9. }