René's URL Explorer Experiment


Title: Expose accept_string and print_internal_states by Ubospica · Pull Request #327 · mlc-ai/xgrammar · GitHub

Open Graph Title: Expose accept_string and print_internal_states by Ubospica · Pull Request #327 · mlc-ai/xgrammar

X Title: Expose accept_string and print_internal_states by Ubospica · Pull Request #327 · mlc-ai/xgrammar

Description: Fast, Flexible and Portable Structured Generation. Contribute to mlc-ai/xgrammar development by creating an account on GitHub.

Open Graph Description: This PR exposes two internal functions of the GrammarMatcher: accept_string: directly accept a string or byte sequence _debug_print_internal_states: print the internal state for debugging It also...

X Description: This PR exposes two internal functions of the GrammarMatcher: accept_string: directly accept a string or byte sequence _debug_print_internal_states: print the internal state for debugging It also...

Mail addresses
ubospica@gmail.com

Opengraph URL: https://github.com/mlc-ai/xgrammar/pull/327

X: @github

direct link

Domain: redirect.github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:46a902dd-5764-73e2-a281-c109893fcb25
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8C34:1D82:1151C92:17A5CA3:6992EFDC
html-safe-nonce072bf5f1a863def4c3e3a2d3e75db125cea488689fe7efab73d45359e6e203f4
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QzM0OjFEODI6MTE1MUM5MjoxN0E1Q0EzOjY5OTJFRkRDIiwidmlzaXRvcl9pZCI6IjcwNjU0NDIwMjM5MDEwNjA3NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacdaef32856212dc9547cc58cd4caf2226e5b648ca14cd51da0ba972d22b25d6bd
hovercard-subject-tagpull_request:2562643137
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///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/mlc-ai/xgrammar/327/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/53371f81c8c55967ae522e0931acb83357670f26a588e65cca119c79a38b79e3/mlc-ai/xgrammar/pull/327
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/53371f81c8c55967ae522e0931acb83357670f26a588e65cca119c79a38b79e3/mlc-ai/xgrammar/pull/327
og:image:altThis PR exposes two internal functions of the GrammarMatcher: accept_string: directly accept a string or byte sequence _debug_print_internal_states: print the internal state for debugging It also...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameUbospica
hostnamegithub.com
expected-hostnamegithub.com
None01ab16879a3159e6f0717ab948b9b562e162a6aafd1f4393b786b07b747df244
turbo-cache-controlno-cache
go-importgithub.com/mlc-ai/xgrammar git https://github.com/mlc-ai/xgrammar.git
octolytics-dimension-user_id106173866
octolytics-dimension-user_loginmlc-ai
octolytics-dimension-repository_id821257066
octolytics-dimension-repository_nwomlc-ai/xgrammar
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id821257066
octolytics-dimension-repository_network_root_nwomlc-ai/xgrammar
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseb1570f3928bef80fa5fc7890ce0942e9b696ad9d
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://redirect.github.com/mlc-ai/xgrammar/pull/327#start-of-content
https://redirect.github.com/
Sign in https://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmlc-ai%2Fxgrammar%2Fpull%2F327
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmlc-ai%2Fxgrammar%2Fpull%2F327
Sign up https://redirect.github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=mlc-ai%2Fxgrammar
Reloadhttps://redirect.github.com/mlc-ai/xgrammar/pull/327
Reloadhttps://redirect.github.com/mlc-ai/xgrammar/pull/327
Reloadhttps://redirect.github.com/mlc-ai/xgrammar/pull/327
mlc-ai https://redirect.github.com/mlc-ai
xgrammarhttps://redirect.github.com/mlc-ai/xgrammar
Notifications https://redirect.github.com/login?return_to=%2Fmlc-ai%2Fxgrammar
Fork 125 https://redirect.github.com/login?return_to=%2Fmlc-ai%2Fxgrammar
Star 1.6k https://redirect.github.com/login?return_to=%2Fmlc-ai%2Fxgrammar
Code https://redirect.github.com/mlc-ai/xgrammar
Issues 19 https://redirect.github.com/mlc-ai/xgrammar/issues
Pull requests 11 https://redirect.github.com/mlc-ai/xgrammar/pulls
Actions https://redirect.github.com/mlc-ai/xgrammar/actions
Projects 0 https://redirect.github.com/mlc-ai/xgrammar/projects
Security 3 https://redirect.github.com/mlc-ai/xgrammar/security
Insights https://redirect.github.com/mlc-ai/xgrammar/pulse
Code https://redirect.github.com/mlc-ai/xgrammar
Issues https://redirect.github.com/mlc-ai/xgrammar/issues
Pull requests https://redirect.github.com/mlc-ai/xgrammar/pulls
Actions https://redirect.github.com/mlc-ai/xgrammar/actions
Projects https://redirect.github.com/mlc-ai/xgrammar/projects
Security https://redirect.github.com/mlc-ai/xgrammar/security
Insights https://redirect.github.com/mlc-ai/xgrammar/pulse
Ubospicahttps://redirect.github.com/Ubospica
mlc-ai:mainhttps://redirect.github.com/mlc-ai/xgrammar/tree/main
Ubospica:main-dev/2025-06-02-expose-methodshttps://redirect.github.com/Ubospica/xgrammar/tree/main-dev/2025-06-02-expose-methods
Conversationhttps://redirect.github.com/mlc-ai/xgrammar/pull/327
Commits1 (1)https://redirect.github.com/mlc-ai/xgrammar/pull/327/commits
Checkshttps://redirect.github.com/mlc-ai/xgrammar/pull/327/checks
Files changedhttps://redirect.github.com/mlc-ai/xgrammar/pull/327/files
Expose accept_string and print_internal_stateshttps://redirect.github.com/mlc-ai/xgrammar/pull/327#top
Ubospicahttps://redirect.github.com/Ubospica
mlc-ai:mainhttps://redirect.github.com/mlc-ai/xgrammar/tree/main
Ubospica:main-dev/2025-06-02-expose-methodshttps://redirect.github.com/Ubospica/xgrammar/tree/main-dev/2025-06-02-expose-methods
https://redirect.github.com/Ubospica
Ubospicahttps://redirect.github.com/Ubospica
Jun 3, 2025https://redirect.github.com/mlc-ai/xgrammar/pull/327#issue-3112456121
Please reload this pagehttps://redirect.github.com/mlc-ai/xgrammar/pull/327
https://redirect.github.com/Ubospica
finishhttps://redirect.github.com/mlc-ai/xgrammar/pull/327/commits/e7b8d21e3f341ce8e55ee5b0d8f7fd1b8594d886
e7b8d21https://redirect.github.com/mlc-ai/xgrammar/pull/327/commits/e7b8d21e3f341ce8e55ee5b0d8f7fd1b8594d886
https://redirect.github.com/Ubospica
Ubospicahttps://redirect.github.com/Ubospica
9fecc61https://redirect.github.com/mlc-ai/xgrammar/commit/9fecc61b68389d421af1a31ab9eaf2d97294b8e8
Jun 3, 2025https://github.com/mlc-ai/xgrammar/pull/327#event-17948811048
Please reload this pagehttps://redirect.github.com/mlc-ai/xgrammar/pull/327
https://redirect.github.com/loganzartman
loganzartmanhttps://redirect.github.com/loganzartman
Oct 20, 2025 https://redirect.github.com/mlc-ai/xgrammar/pull/327#ref-pullrequest-3533303112
Fix web emscripten bindings, bump to 0.1.26 #456 https://redirect.github.com/mlc-ai/xgrammar/pull/456
Ubospicahttps://redirect.github.com/Ubospica
Nov 4, 2025 https://redirect.github.com/mlc-ai/xgrammar/pull/327#ref-commit-de241aa
https://redirect.github.com/loganzartman
https://redirect.github.com/Ubospica
Fix web emscripten bindings, bump to 0.1.26 (https://redirect.github.com/mlc-ai/xgrammar/commit/de241aa263510566c94039de9173701b976df59d
#456https://github.com/mlc-ai/xgrammar/pull/456
)https://redirect.github.com/mlc-ai/xgrammar/commit/de241aa263510566c94039de9173701b976df59d
de241aahttps://redirect.github.com/mlc-ai/xgrammar/commit/de241aa263510566c94039de9173701b976df59d
#123https://github.com/mlc-ai/xgrammar/pull/123
#327https://github.com/mlc-ai/xgrammar/pull/327
#428https://github.com/mlc-ai/xgrammar/pull/428
#308https://github.com/mlc-ai/xgrammar/pull/308
https://github.com/user-attachments/assets/8529375c-ab3c-454b-91fd-e18134584035https://github.com/user-attachments/assets/8529375c-ab3c-454b-91fd-e18134584035
https://github.co/hiddenchars
https://redirect.github.com/mlc-ai/xgrammar/pull/{{ revealButtonHref }}
Sign up for freehttps://redirect.github.com/join?source=comment-repo
Sign in to commenthttps://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmlc-ai%2Fxgrammar%2Fpull%2F327
Please reload this pagehttps://redirect.github.com/mlc-ai/xgrammar/pull/327
https://redirect.github.com/Ubospica
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.