Skip to content
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

Guard integer values #3

Open
bgins opened this issue Jan 22, 2019 · 0 comments
Open

Guard integer values #3

bgins opened this issue Jan 22, 2019 · 0 comments

Comments

@bgins
Copy link
Owner

bgins commented Jan 22, 2019

We need to guard integer values based on their size and signedness (see section 6.3.1).

Signedness is determined by the operations performed on an integer (section 2.3.1), though integers can have an explicit + or - to indicate they are signed. At the moment, the lexer treats integers as uN tokens or sN tokens if the have a + or - prefix.

Checking the instruction applied to an integer will likely give us the information we need to determine size and signedness, but this needs further investigation.

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

No branches or pull requests

1 participant