Skip to content

Adds NaN and Infinity literals #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open

Conversation

vihanb
Copy link
Member

@vihanb vihanb commented Nov 1, 2016

exec() {
if (this.curchar === 'I' &&
this.Code[this.Index + 1] === 'n' &&
this.Code[this.Index + 1] === 'f' &&
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As @ETHproductions said, i don't think these should all be the same. You can also use this.jumpLiteral("Infinity") which returns false if not a match, truthy otherwise


import {ClassType} from '../consts/types';

export default class CheddarNilToken extends CheddarPrimitive {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be CheddarNaNToken instead of CheddarNilToken

@schas002
Copy link

The package.json is still in conflict.

@vihanb You're lucky: you can address this conflict online! \o/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants