René's URL Explorer Experiment


Title: Add support for Byte Literals by vexx32 · Pull Request #7901 · PowerShell/PowerShell · GitHub

Open Graph Title: Add support for Byte Literals by vexx32 · Pull Request #7901 · PowerShell/PowerShell

X Title: Add support for Byte Literals by vexx32 · Pull Request #7901 · PowerShell/PowerShell

Description: PR Summary Adds y suffix that is used to specify a numeric literal as the sbyte data type. Can be combined with the existing u suffix as uy to specify the byte data type Adds tests to ensure the parsing for these works correctly. Examples: PS> 100y 100 PS> 100y.GetType().FullName System.SByte PS> 100uy 100 100uy.GetType().FullName System.Byte PS> 300uy # Error: Invalid numeric literal 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 PR has a meaningful title Use the present tense and imperative mood when describing your changes Summarized changes Change is not breaking Make sure all .h, .cpp, .cs, .ps1 and .psm1 files have the correct copyright header This PR is ready to merge and is not Work in Progress. If the PR is work in progress, please add the prefix WIP: to the beginning of the title and remove the prefix when the PR is ready. User-facing changes Not Applicable OR User-facing Documentation needed Issue filed - Issue link: MicrosoftDocs/PowerShell-Docs#2965 Testing - New and feature Not Applicable or can only be tested interactively OR Make sure you've added a new test if existing tests do not effectively test the code changed Add [feature] if the change is significant or affects feature tests

Open Graph Description: PR Summary Adds y suffix that is used to specify a numeric literal as the sbyte data type. Can be combined with the existing u suffix as uy to specify the byte data type Adds tests to ensure th...

X Description: PR Summary Adds y suffix that is used to specify a numeric literal as the sbyte data type. Can be combined with the existing u suffix as uy to specify the byte data type Adds tests to ensure th...

Opengraph URL: https://github.com/PowerShell/PowerShell/pull/7901

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:45b5c544-7d47-82d6-78bc-3474655d0e0c
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC282:25F138:EF8FC:1442F2:6AFD4BCC
html-safe-nonce9b77e9280410762c88063df98b3b45912d755c58ab5465c82ae78595ad9fdb9f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMjgyOjI1RjEzODpFRjhGQzoxNDQyRjI6NkFGRDRCQ0MiLCJ2aXNpdG9yX2lkIjoiNDM4OTQzMjM3NjE2NjI3MTk0OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac0ff0a3503d30e16b231b4762eaf6246252c0cdb9b2c5df038991bc7098b0cf94
hovercard-subject-tagpull_request:219253582
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/PowerShell/PowerShell/pull/7901/files
twitter:imagehttps://avatars.githubusercontent.com/u/32407840?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/32407840?s=400&v=4
og:image:altPR Summary Adds y suffix that is used to specify a numeric literal as the sbyte data type. Can be combined with the existing u suffix as uy to specify the byte data type Adds tests to ensure th...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None66653c2e55a6fff2930be1bdf07ee4f8aa137e3956d056c822563be6f878755e
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git
octolytics-dimension-user_id11524380
octolytics-dimension-user_loginPowerShell
octolytics-dimension-repository_id49609581
octolytics-dimension-repository_nwoPowerShell/PowerShell
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id49609581
octolytics-dimension-repository_network_root_nwoPowerShell/PowerShell
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseb6f01f7cb9f35f8c09949773241a3d49dd04b340
ui-targetcanary-1
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/PowerShell/PowerShell/pull/7901/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fpull%2F7901%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fpull%2F7901%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=PowerShell%2FPowerShell
Reloadhttps://github.com/PowerShell/PowerShell/pull/7901/files
Reloadhttps://github.com/PowerShell/PowerShell/pull/7901/files
Reloadhttps://github.com/PowerShell/PowerShell/pull/7901/files
PowerShellhttps://github.com/PowerShell
PowerShellhttps://github.com/PowerShell/PowerShell
Codehttps://github.com/PowerShell/PowerShell
Issues1.3k (1.3k)https://github.com/PowerShell/PowerShell/issues
Pull requests365 (365)https://github.com/PowerShell/PowerShell/pulls
Discussionshttps://github.com/PowerShell/PowerShell/discussions
Actionshttps://github.com/PowerShell/PowerShell/actions
Projectshttps://github.com/PowerShell/PowerShell/projects
Security and quality3 (3)https://github.com/PowerShell/PowerShell/security
Insightshttps://github.com/PowerShell/PowerShell/insights
Sign up for GitHub https://github.com/signup?return_to=%2FPowerShell%2FPowerShell%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FPowerShell%2FPowerShell%2Fissues%2Fnew%2Fchoose
Ilya (iSazonov)https://github.com/iSazonov
PowerShell:masterhttps://github.com/PowerShell/PowerShell/tree/master
vexx32:Tokenizer/ByteLiteralshttps://github.com/vexx32/PowerShell/tree/Tokenizer/ByteLiterals
Conversation 25 https://github.com/PowerShell/PowerShell/pull/7901
Commits 10 https://github.com/PowerShell/PowerShell/pull/7901/commits
Checks 0 https://github.com/PowerShell/PowerShell/pull/7901/checks
Files changed https://github.com/PowerShell/PowerShell/pull/7901/files
Please reload this pagehttps://github.com/PowerShell/PowerShell/pull/7901/files
Add support for Byte Literals https://github.com/PowerShell/PowerShell/pull/7901/files#top
Show all changes 10 commits https://github.com/PowerShell/PowerShell/pull/7901/files
824a96a Add NumberSuffixFlag enty for SignedByte vexx32 Sep 30, 2018 https://github.com/PowerShell/PowerShell/pull/7901/commits/824a96a971c9c468508dd0493bf9446bfd51a312
a98c5da Add explicit names for flag combinations vexx32 Sep 30, 2018 https://github.com/PowerShell/PowerShell/pull/7901/commits/a98c5da642c06c94fe25c3804dffb0bdfb56bc73
d1f5cb3 Add CharTraits for typesuffix on `y` vexx32 Sep 30, 2018 https://github.com/PowerShell/PowerShell/pull/7901/commits/d1f5cb30da858a8c649b645a7306cd919881ee7b
cd185ec Add ScanNumberHelper cases for byte suffixes vexx32 Sep 30, 2018 https://github.com/PowerShell/PowerShell/pull/7901/commits/cd185ec52e108fabd3723fe82740b62c2ec2bf28
9838504 Add unsigned byte tests vexx32 Oct 1, 2018 https://github.com/PowerShell/PowerShell/pull/7901/commits/98385047036d0770474678ccccd14424efa74578
820b688 Add signed byte tests vexx32 Oct 1, 2018 https://github.com/PowerShell/PowerShell/pull/7901/commits/820b68877fdefb02996b7b8e49d084924b4e2e50
d1ac03b Fix spacing issue vexx32 Oct 1, 2018 https://github.com/PowerShell/PowerShell/pull/7901/commits/d1ac03ba6dbab1b12f464b410955b23596b7f4de
7d557ea Remove inapplicable binary parsing tests vexx32 Oct 1, 2018 https://github.com/PowerShell/PowerShell/pull/7901/commits/7d557ea00fa3507a9f5a777f8ba2e89bd8736d32
fd93c3b Shortcut parsing fail for (s)byte when multiplier is set vexx32 Oct 1, 2018 https://github.com/PowerShell/PowerShell/pull/7901/commits/fd93c3bda92769987f840b7644f9bb28d3446e47
d664649 Address CodeFactor issues vexx32 Oct 3, 2018 https://github.com/PowerShell/PowerShell/pull/7901/commits/d6646491650b68c6cada3c512cafadd8fe326eb1
Clear filters https://github.com/PowerShell/PowerShell/pull/7901/files
Please reload this pagehttps://github.com/PowerShell/PowerShell/pull/7901/files
Please reload this pagehttps://github.com/PowerShell/PowerShell/pull/7901/files
CharTraits.cs https://github.com/PowerShell/PowerShell/pull/7901/files#diff-c1474215963260a5fdd90751566011d4c5ceeaf5d28099e09a3128bf159ca585
tokenizer.cs https://github.com/PowerShell/PowerShell/pull/7901/files#diff-52e11343509552477fbbb63d3123eaacb54b86748fa2330e2452422968ff9432
Parser.Tests.ps1 https://github.com/PowerShell/PowerShell/pull/7901/files#diff-f4a377b74044c68cbaaa3d78ef8ca4b25a655f461dfe93609609a9919090c511
https://github.com/PowerShell/PowerShell/blob/master/.github/CODEOWNERS#L49
src/System.Management.Automation/engine/parser/CharTraits.cshttps://github.com/PowerShell/PowerShell/pull/7901/files#diff-c1474215963260a5fdd90751566011d4c5ceeaf5d28099e09a3128bf159ca585
View file https://github.com/vexx32/PowerShell/blob/d6646491650b68c6cada3c512cafadd8fe326eb1/src/System.Management.Automation/engine/parser/CharTraits.cs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/PowerShell/PowerShell/pull/7901/{{ revealButtonHref }}
https://github.com/PowerShell/PowerShell/pull/7901/files#diff-c1474215963260a5fdd90751566011d4c5ceeaf5d28099e09a3128bf159ca585
https://github.com/PowerShell/PowerShell/pull/7901/files#diff-c1474215963260a5fdd90751566011d4c5ceeaf5d28099e09a3128bf159ca585
https://github.com/PowerShell/PowerShell/pull/7901/files#diff-c1474215963260a5fdd90751566011d4c5ceeaf5d28099e09a3128bf159ca585
https://github.com/PowerShell/PowerShell/pull/7901/files#diff-c1474215963260a5fdd90751566011d4c5ceeaf5d28099e09a3128bf159ca585
https://github.com/PowerShell/PowerShell/blob/master/.github/CODEOWNERS#L49
src/System.Management.Automation/engine/parser/tokenizer.cshttps://github.com/PowerShell/PowerShell/pull/7901/files#diff-52e11343509552477fbbb63d3123eaacb54b86748fa2330e2452422968ff9432
View file https://github.com/vexx32/PowerShell/blob/d6646491650b68c6cada3c512cafadd8fe326eb1/src/System.Management.Automation/engine/parser/tokenizer.cs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/PowerShell/PowerShell/pull/7901/{{ revealButtonHref }}
https://github.com/PowerShell/PowerShell/pull/7901/files#diff-52e11343509552477fbbb63d3123eaacb54b86748fa2330e2452422968ff9432
https://github.com/PowerShell/PowerShell/pull/7901/files#diff-52e11343509552477fbbb63d3123eaacb54b86748fa2330e2452422968ff9432
https://github.com/PowerShell/PowerShell/pull/7901/files#diff-52e11343509552477fbbb63d3123eaacb54b86748fa2330e2452422968ff9432
https://github.com/PowerShell/PowerShell/pull/7901/files#diff-52e11343509552477fbbb63d3123eaacb54b86748fa2330e2452422968ff9432
https://github.com/PowerShell/PowerShell/pull/7901/files#diff-52e11343509552477fbbb63d3123eaacb54b86748fa2330e2452422968ff9432
Please reload this pagehttps://github.com/PowerShell/PowerShell/pull/7901/files
https://github.com/PowerShell/PowerShell/pull/7901/files#diff-52e11343509552477fbbb63d3123eaacb54b86748fa2330e2452422968ff9432
https://github.com/PowerShell/PowerShell/pull/7901/files#diff-52e11343509552477fbbb63d3123eaacb54b86748fa2330e2452422968ff9432
https://github.com/PowerShell/PowerShell/pull/7901/files#diff-52e11343509552477fbbb63d3123eaacb54b86748fa2330e2452422968ff9432
https://github.com/PowerShell/PowerShell/pull/7901/files#diff-52e11343509552477fbbb63d3123eaacb54b86748fa2330e2452422968ff9432
https://github.com/PowerShell/PowerShell/pull/7901/files#diff-52e11343509552477fbbb63d3123eaacb54b86748fa2330e2452422968ff9432
https://github.com/PowerShell/PowerShell/pull/7901/files#diff-52e11343509552477fbbb63d3123eaacb54b86748fa2330e2452422968ff9432
https://github.com/PowerShell/PowerShell/blob/master/.github/CODEOWNERS#L7
test/powershell/Language/Parser/Parser.Tests.ps1https://github.com/PowerShell/PowerShell/pull/7901/files#diff-f4a377b74044c68cbaaa3d78ef8ca4b25a655f461dfe93609609a9919090c511
View file https://github.com/vexx32/PowerShell/blob/d6646491650b68c6cada3c512cafadd8fe326eb1/test/powershell/Language/Parser/Parser.Tests.ps1
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/PowerShell/PowerShell/pull/7901/{{ revealButtonHref }}
https://github.com/PowerShell/PowerShell/pull/7901/files#diff-f4a377b74044c68cbaaa3d78ef8ca4b25a655f461dfe93609609a9919090c511
https://github.com/PowerShell/PowerShell/pull/7901/files#diff-f4a377b74044c68cbaaa3d78ef8ca4b25a655f461dfe93609609a9919090c511
https://github.com/PowerShell/PowerShell/pull/7901/files#diff-f4a377b74044c68cbaaa3d78ef8ca4b25a655f461dfe93609609a9919090c511
https://github.com/PowerShell/PowerShell/pull/7901/files#diff-f4a377b74044c68cbaaa3d78ef8ca4b25a655f461dfe93609609a9919090c511
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.