Skip to content

Comments

fix example#29

Open
XDUqinian wants to merge 1 commit intoPacktPublishing:masterfrom
XDUqinian:master
Open

fix example#29
XDUqinian wants to merge 1 commit intoPacktPublishing:masterfrom
XDUqinian:master

Conversation

@XDUqinian
Copy link

#define CASE(ch, tok) \
case ch: formToken(token, BufferPtr + 1, tok); break
CASE('+', Token::plus);
CASE('-', Token::minus);
CASE('*', Token::star);
CASE('/', Token::slash);
CASE('(', Token::Token::l_paren);
CASE(')', Token::Token::r_paren);
CASE(':', Token::Token::colon);
CASE(',', Token::Token::comma);
#undef CASE

This is the code in the Lexer::next function in the lexer.cpp in Chapter 03. I think Token::Token::op is something wrong .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant