Skip to content

Adds NaN and Infinity literals#2

Open
vihanb wants to merge 2 commits into
developfrom
fix-fixed-numbers
Open

Adds NaN and Infinity literals#2
vihanb wants to merge 2 commits into
developfrom
fix-fixed-numbers

Conversation

@vihanb

@vihanb vihanb commented Nov 1, 2016

Copy link
Copy Markdown
Member

Comment thread src/literals/infinity.es6
exec() {
if (this.curchar === 'I' &&
this.Code[this.Index + 1] === 'n' &&
this.Code[this.Index + 1] === 'f' &&

Copy link
Copy Markdown
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

Comment thread src/literals/nan.es6

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

export default class CheddarNilToken extends CheddarPrimitive {

Copy link
Copy Markdown
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
Copy Markdown

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