FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[Original HTTPS Page]
GH-98831: "Generate" the interpreter by gvanrossum · Pull Request #98830 · python/cpython · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
python
/
cpython
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
35.3k
Star
74.9k
Code
Issues
5k+
Pull requests
2.6k
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
GH-98831: "Generate" the interpreter
- #98830
#98830
Merged
gvanrossum
merged 89 commits into
python:main
python/cpython:main
from
gvanrossum:generate-ceval-switch
gvanrossum/cpython:generate-ceval-switch
Copy head branch name to clipboard
Nov 3, 2022
Conversation
Commits
89
(89)
Checks
Files changed
Merged
GH-98831: "Generate" the interpreter
#98830
gvanrossum
merged 89 commits into
python:main
python/cpython:main
from
gvanrossum:generate-ceval-switch
gvanrossum/cpython:generate-ceval-switch
Copy head branch name to clipboard
Commits
Commits on Oct 11, 2022
New script to generate the ceval switch
Show description for 089ab0c
gvanrossum
committed
089ab0c
View commit details
Copy full SHA for 089ab0c
Browse repository at this point
Commits on Oct 12, 2022
Add 'End regular instructions' marker
gvanrossum
committed
bba5b94
View commit details
Copy full SHA for bba5b94
Browse repository at this point
Extract to a format closer to interpreter_definition.md
gvanrossum
committed
99b0058
View commit details
Copy full SHA for 99b0058
Browse repository at this point
Switch to generating new DSL syntax
gvanrossum
committed
2939830
View commit details
Copy full SHA for 2939830
Browse repository at this point
Indent output; Always generate stack effect syntax; use argparse
gvanrossum
committed
65abfc4
View commit details
Copy full SHA for 65abfc4
Browse repository at this point
Check jump flag; tweak begin and end of the script a bit
gvanrossum
committed
51dbe28
View commit details
Copy full SHA for 51dbe28
Browse repository at this point
Commits on Oct 13, 2022
Fix incorrect output for ??--??
gvanrossum
committed
a238f69
View commit details
Copy full SHA for a238f69
Browse repository at this point
Script to generate cases.h from bytecodes.inst
gvanrossum
committed
2d5b1b5
View commit details
Copy full SHA for 2d5b1b5
Browse repository at this point
Write bytecodes.inst into Python directory by default
gvanrossum
committed
ae042be
View commit details
Copy full SHA for ae042be
Browse repository at this point
Initial bytecodes.inst
gvanrossum
committed
4315621
View commit details
Copy full SHA for 4315621
Browse repository at this point
Initial cases.h
gvanrossum
committed
8c80bfd
View commit details
Copy full SHA for 8c80bfd
Browse repository at this point
Changes to ceval.c to use cases.h
gvanrossum
committed
7301203
View commit details
Copy full SHA for 7301203
Browse repository at this point
Changes to Makefile.pre.in to generate cases.h
gvanrossum
committed
d9ac40b
View commit details
Copy full SHA for d9ac40b
Browse repository at this point
Move #endif around
gvanrossum
committed
a5bff0c
View commit details
Copy full SHA for a5bff0c
Browse repository at this point
Commits on Oct 14, 2022
Write families to .inst file
Show description for 8c13c55
gvanrossum
committed
8c13c55
View commit details
Copy full SHA for 8c13c55
Browse repository at this point
Derive stack effect for super-instructions and specializations
gvanrossum
committed
34c84bf
View commit details
Copy full SHA for 34c84bf
Browse repository at this point
Regenerated bytecodes.inst with fewer errors
gvanrossum
committed
ff70895
View commit details
Copy full SHA for ff70895
Browse repository at this point
Support array stack effects
gvanrossum
committed
78f8591
View commit details
Copy full SHA for 78f8591
Browse repository at this point
Array stack effects are now in bytecodes.inst
gvanrossum
committed
a29b815
View commit details
Copy full SHA for a29b815
Browse repository at this point
Add Mark's C lexer
gvanrossum
committed
688bb5d
View commit details
Copy full SHA for 688bb5d
Browse repository at this point
Start writing a real parser
Show description for 7def42b
gvanrossum
committed
7def42b
View commit details
Copy full SHA for 7def42b
Browse repository at this point
Move cases infrastructure to its own directory
gvanrossum
committed
8fae259
View commit details
Copy full SHA for 8fae259
Browse repository at this point
Pristine copy of lexer from Mark's gist
Show description for b998a97
gvanrossum
committed
b998a97
View commit details
Copy full SHA for b998a97
Browse repository at this point
Fix tiny bits in lexer.py
gvanrossum
committed
c44adad
View commit details
Copy full SHA for c44adad
Browse repository at this point
Move c_lexer.c to lexer.c
gvanrossum
committed
d0c4398
View commit details
Copy full SHA for d0c4398
Browse repository at this point
Commits on Oct 15, 2022
Complete parser (not using it yet):
gvanrossum
committed
06a3afa
View commit details
Copy full SHA for 06a3afa
Browse repository at this point
Complete the parser and use it
gvanrossum
committed
33540af
View commit details
Copy full SHA for 33540af
Browse repository at this point
Commits on Oct 16, 2022
Use a dataclass for Token; move stuff around to fix tokens
gvanrossum
committed
1990b61
View commit details
Copy full SHA for 1990b61
Browse repository at this point
Make a nice syntax error in lexer.py
gvanrossum
committed
690d4c5
View commit details
Copy full SHA for 690d4c5
Browse repository at this point
More handy stuff for raising syntax errors
gvanrossum
committed
b3cd440
View commit details
Copy full SHA for b3cd440
Browse repository at this point
Commits on Oct 19, 2022
Fix family definitions per spec
gvanrossum
committed
2ed0e15
View commit details
Copy full SHA for 2ed0e15
Browse repository at this point
Rename bytecodes.{inst,c} in prep for better tooling support
gvanrossum
committed
371050e
View commit details
Copy full SHA for 371050e
Browse repository at this point
Use a template to generate top/bottom of bytecodes.c
gvanrossum
committed
ee59b7d
View commit details
Copy full SHA for ee59b7d
Browse repository at this point
Commits on Oct 20, 2022
Add more to bytecodes_template.c
gvanrossum
committed
a782bb1
View commit details
Copy full SHA for a782bb1
Browse repository at this point
Commits on Oct 21, 2022
Let generate_cases.py add the DISPATCH() calls
Show description for 0ff055a
gvanrossum
committed
0ff055a
View commit details
Copy full SHA for 0ff055a
Browse repository at this point
Commits on Oct 24, 2022
Refactor the parser in preparation of actually parsing C
gvanrossum
committed
8e9b3dc
View commit details
Copy full SHA for 8e9b3dc
Browse repository at this point
Commits on Oct 26, 2022
Handle PERIOD properly
gvanrossum
committed
a38e52b
View commit details
Copy full SHA for a38e52b
Browse repository at this point
Commits on Oct 27, 2022
CHECKPOINT -- the start of a better C parser
gvanrossum
committed
5279fe2
View commit details
Copy full SHA for 5279fe2
Browse repository at this point
Merge remote-tracking branch 'origin/main' into generate-ceval-switch
gvanrossum
committed
35eb36a
View commit details
Copy full SHA for 35eb36a
Browse repository at this point
Add some type hints to lexer.py
gvanrossum
committed
1869a8b
View commit details
Copy full SHA for 1869a8b
Browse repository at this point
Split cparser into sparser and eparser
gvanrossum
committed
17466fd
View commit details
Copy full SHA for 17466fd
Browse repository at this point
Identifiers are types too (-ish)
gvanrossum
committed
96832de
View commit details
Copy full SHA for 96832de
Browse repository at this point
Begin better treatment of types
gvanrossum
committed
3c9a567
View commit details
Copy full SHA for 3c9a567
Browse repository at this point
Begin better declarations
gvanrossum
committed
e751e9a
View commit details
Copy full SHA for e751e9a
Browse repository at this point
Support any number of postfix operators
gvanrossum
committed
9e9ddbd
View commit details
Copy full SHA for 9e9ddbd
Browse repository at this point
Split declaration; support 'for (int i = 0;...)'
gvanrossum
committed
5e90a22
View commit details
Copy full SHA for 5e90a22
Browse repository at this point
Use CHARACTER, not CHAR, for '.' token
gvanrossum
committed
ba3c2ff
View commit details
Copy full SHA for ba3c2ff
Browse repository at this point
Support string and character literals
gvanrossum
committed
3678d2a
View commit details
Copy full SHA for 3678d2a
Browse repository at this point
Commits on Oct 28, 2022
Refactor decl_stmt some more
gvanrossum
committed
607a22e
View commit details
Copy full SHA for 607a22e
Browse repository at this point
Switch statement (and case and default)
gvanrossum
committed
06247ea
View commit details
Copy full SHA for 06247ea
Browse repository at this point
String literal concatenation
gvanrossum
committed
5ec6a12
View commit details
Copy full SHA for 5ec6a12
Browse repository at this point
Fix hex and octal numbers
gvanrossum
committed
5f8a56f
View commit details
Copy full SHA for 5f8a56f
Browse repository at this point
Hack conditional operator
gvanrossum
committed
dc7732f
View commit details
Copy full SHA for dc7732f
Browse repository at this point
More numeric types, e.g. unsigned long
gvanrossum
committed
a3c3c72
View commit details
Copy full SHA for a3c3c72
Browse repository at this point
Support array declarations and initializers
gvanrossum
committed
5c91786
View commit details
Copy full SHA for 5c91786
Browse repository at this point
Fix typo in main
gvanrossum
committed
4ec2d9b
View commit details
Copy full SHA for 4ec2d9b
Browse repository at this point
Support some function types in casts
Show description for 074be4b
gvanrossum
committed
074be4b
View commit details
Copy full SHA for 074be4b
Browse repository at this point
Support function pointer declarations
gvanrossum
committed
d140ae6
View commit details
Copy full SHA for d140ae6
Browse repository at this point
Make Context repr more compact
gvanrossum
committed
2ad6278
View commit details
Copy full SHA for 2ad6278
Browse repository at this point
Make contextual more generic
gvanrossum
committed
2f3e321
View commit details
Copy full SHA for 2f3e321
Browse repository at this point
Make Parser derive from SParser, and add test main
gvanrossum
committed
64f62c7
View commit details
Copy full SHA for 64f62c7
Browse repository at this point
CHECKPOINT: generate cases the new way
Show description for 250ded1
gvanrossum
committed
250ded1
View commit details
Copy full SHA for 250ded1
Browse repository at this point
Insert DISPATCH() unless block always exits
gvanrossum
committed
4efd6bb
View commit details
Copy full SHA for 4efd6bb
Browse repository at this point
More accuracy in DISPATCH() addition
gvanrossum
committed
01b3735
View commit details
Copy full SHA for 01b3735
Browse repository at this point
📜🤖 Added by blurb_it.
blurb-it[bot]
authored
5215027
View commit details
Copy full SHA for 5215027
Browse repository at this point
Merge remote-tracking branch 'origin/main' into generate-ceval-switch
gvanrossum
committed
df0e8d8
View commit details
Copy full SHA for df0e8d8
Browse repository at this point
Update generated cases due to END_FOR refactor
gvanrossum
committed
08465c9
View commit details
Copy full SHA for 08465c9
Browse repository at this point
Add some TODO comments to lexer.py
gvanrossum
committed
6111283
View commit details
Copy full SHA for 6111283
Browse repository at this point
Add README.md to Tools/cases_generator
gvanrossum
committed
69c5551
View commit details
Copy full SHA for 69c5551
Browse repository at this point
Commits on Oct 29, 2022
Fix trailing whitespace
gvanrossum
committed
a7f0c08
View commit details
Copy full SHA for a7f0c08
Browse repository at this point
Commits on Oct 30, 2022
Fix crash in require() at EOF
gvanrossum
committed
46b0def
View commit details
Copy full SHA for 46b0def
Browse repository at this point
More compact Token.__repr__()
gvanrossum
committed
e757b61
View commit details
Copy full SHA for e757b61
Browse repository at this point
Proper operator priorities, add comma operator
Show description for c67f0ba
gvanrossum
committed
c67f0ba
View commit details
Copy full SHA for c67f0ba
Browse repository at this point
Commits on Oct 31, 2022
Format large families more nicely
gvanrossum
committed
98427bf
View commit details
Copy full SHA for 98427bf
Browse repository at this point
Rename cases.h to generated_cases.c.h
gvanrossum
committed
4bbf11e
View commit details
Copy full SHA for 4bbf11e
Browse repository at this point
Merge remote-tracking branch 'origin/main' into generate-ceval-switch
gvanrossum
committed
1911964
View commit details
Copy full SHA for 1911964
Browse repository at this point
Regenerate cases after merging latest main
gvanrossum
committed
6837c86
View commit details
Copy full SHA for 6837c86
Browse repository at this point
Separate family members by commas
Show description for 6f3c993
gvanrossum
committed
6f3c993
View commit details
Copy full SHA for 6f3c993
Browse repository at this point
Commits on Nov 1, 2022
Merge remote-tracking branch 'origin/main' into generate-ceval-switch
gvanrossum
committed
4663dfc
View commit details
Copy full SHA for 4663dfc
Browse repository at this point
Regenerated files after merge from main
gvanrossum
committed
1c587bb
View commit details
Copy full SHA for 1c587bb
Browse repository at this point
Commits on Nov 2, 2022
Get rid of the C parser infrastructure
Show description for b96f5db
gvanrossum
committed
b96f5db
View commit details
Copy full SHA for b96f5db
Browse repository at this point
Remove stack effect from bytecodes.c
gvanrossum
committed
c42d323
View commit details
Copy full SHA for c42d323
Browse repository at this point
Update README.md
gvanrossum
committed
2eb908d
View commit details
Copy full SHA for 2eb908d
Browse repository at this point
Merge remote-tracking branch 'origin/main' into generate-ceval-switch
gvanrossum
committed
53a0398
View commit details
Copy full SHA for 53a0398
Browse repository at this point
Add generated_cases.c.h to .gitattributes as generated file
gvanrossum
committed
6ea380f
View commit details
Copy full SHA for 6ea380f
Browse repository at this point
Update from Brandt's code review
Show description for d8e6db8
gvanrossum
committed
d8e6db8
View commit details
Copy full SHA for d8e6db8
Browse repository at this point
Merge remote-tracking branch 'origin/main' into generate-ceval-switch
gvanrossum
committed
8a312ca
View commit details
Copy full SHA for 8a312ca
Browse repository at this point
Update generated files after merging from main
gvanrossum
committed
7a327aa
View commit details
Copy full SHA for 7a327aa
Browse repository at this point
Commits on Nov 3, 2022
Remove the redundant cases from ceval.c
Show description for fddc08c
gvanrossum
committed
fddc08c
View commit details
Copy full SHA for fddc08c
Browse repository at this point
Back
|
FazBrowse Home
|
New Git URL