Advertisement
tinyevil

Untitled

Jun 22nd, 2018
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. let token_names:string[] = {"identifier", "number", "keyword_function" };
  2.  
  3. generate_token_classes();
  4. // ^ this unfolds into
  5. class Identifier: public Token{
  6. ...
  7. }
  8.  
  9. class Number: public Token{
  10. ...
  11. }
  12.  
  13. class KeywordFunction: public Token{
  14. ...
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement