Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd support for Byte Literals #7901
Conversation
vexx32
requested review from
BrucePay and
daxian-dbw
as
code owners
Oct 1, 2018
iSazonov
added
Breaking-Change
Documentation Needed
labels
Oct 1, 2018
iSazonov
changed the title
Tokenizer Support for Byte Literals
Add support for Byte Literals
Oct 1, 2018
This comment has been minimized.
This comment has been minimized.
|
@vexx32 Please open Issue in docs repo and add link to the PR description |
iSazonov
reviewed
Oct 1, 2018
test/powershell/Language/Parser/Parser.Tests.ps1 Outdated
vexx32
referenced this pull request
Oct 1, 2018
Closed
Numeric Literal Suffixes documentation needs to be expanded #2965
iSazonov
reviewed
Oct 1, 2018
src/System.Management.Automation/engine/parser/tokenizer.cs Outdated
iSazonov
approved these changes
Oct 1, 2018
This comment has been minimized.
This comment has been minimized.
|
CodeFactor issues remaining are just in missing documentation in the enum; I can either add that to this PR or address it in follow-up PR with the rest of the changes. I would prefer to keep this one minimal, however. |
This comment has been minimized.
This comment has been minimized.
|
@vexx32 Feel free to address CodeFactor issues. |
vexx32
force-pushed the
vexx32:Tokenizer/ByteLiterals
branch
Oct 3, 2018
This comment has been minimized.
This comment has been minimized.
|
Rebased for CIs && added |
vexx32
added some commits
Sep 30, 2018
vexx32
force-pushed the
vexx32:Tokenizer/ByteLiterals
branch
to
d664649
Oct 3, 2018
This comment has been minimized.
This comment has been minimized.
|
@daxian-dbw Could you please review the next step PR? After that we could continue and implement previously planned performance optimizations for the code in follow PR. |
iSazonov
requested review from
SteveL-MSFT and
TravisEz13
Oct 8, 2018
iSazonov
self-assigned this
Oct 8, 2018
TravisEz13
added
the
Review - Committee
label
Oct 8, 2018
TravisEz13
approved these changes
Oct 8, 2018
This comment has been minimized.
This comment has been minimized.
|
@TravisEz13 you fellas are free to pore over it one more time, but just in case you weren't aware / didn't recall, it has been discussed a good bit and reviewed by the committee in terms of the concept over in #7557 |
This comment has been minimized.
This comment has been minimized.
|
@TravisEz13 is there something specific you need the @PowerShell/powershell-committee to review for this PR? |
This comment has been minimized.
This comment has been minimized.
|
@SteveL-MSFT This is marked as a breaking change. The issue linked is not marked as reviewed. Looking back at the issue, it looks like this portion of the design was reviewed. Is that correct? |
This comment has been minimized.
This comment has been minimized.
|
@TravisEz13 sorry for the confusion; I requested the committee further review the ensuing discussion regarding possibly supporting underscore literal syntax and native BigInteger values. This portion was reviewed, aye. |
TravisEz13
added
Committee-Reviewed
and removed
Review - Committee
labels
Oct 8, 2018
This comment has been minimized.
This comment has been minimized.
|
@daxian-dbw Could you please look the PR before we merge? |
vexx32 commentedOct 1, 2018
•
edited
PR Summary
ysuffix that is used to specify a numeric literal as thesbytedata type.usuffix asuyto specify thebytedata typeExamples:
N.B.: I believe this will be a breaking change, as it means some command names (specifically, numerals suffixed with a y such as
100y) will now be interpreted as numerals instead of potential function or command names.Ref: #7557 -- This will resolve the first part of that issue. The second portion of that issue will be solved in a follow-up PR where binary literal support is added.
PR Checklist
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright headerWIP:to the beginning of the title and remove the prefix when the PR is ready.[feature]if the change is significant or affects feature tests