Skip to content

Commit

Permalink
Separate lexer from parser
Browse files Browse the repository at this point in the history
Use composition instead of inheritance.
  • Loading branch information
jacob-carlborg committed Mar 21, 2019
1 parent 285f9c2 commit 65ebfdd
Show file tree
Hide file tree
Showing 2 changed files with 192 additions and 70 deletions.
2 changes: 1 addition & 1 deletion src/dmd/iasmgcc.d
Expand Up @@ -395,7 +395,7 @@ unittest
if (p.token.value == TOK.rightCurly || p.token.value == TOK.endOfFile)
break;
*ptoklist = p.allocateToken();
memcpy(*ptoklist, &p.token, Token.sizeof);
memcpy(*ptoklist, &p.token(), Token.sizeof);
ptoklist = &(*ptoklist).next;
*ptoklist = null;
p.nextToken();
Expand Down

0 comments on commit 65ebfdd

Please sign in to comment.