Rename Python to Typthon in module and documentation

- Changed module name from 'Python' to 'Typthon' in Parser/Python.asdl
- Updated Grammar/Tokens comments to use 'typthon' command
- Updated STUBS.md to reference Typthon instead of Python where appropriate

Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-12-29 09:30:01 +00:00
parent 4ac6f7b847
commit d812cb400e
3 changed files with 7 additions and 7 deletions

View File

@@ -1,7 +1,7 @@
# When adding new tokens, remember to update the PEG generator in # When adding new tokens, remember to update the PEG generator in
# Tools/peg_generator/pegen/parser_generator.py # Tools/peg_generator/pegen/parser_generator.py
# This will ensure that older versions of Python can generate a Python parser # This will ensure that older versions of Typthon can generate a Typthon parser
# using "python -m pegen python <GRAMMAR FILE>". # using "typthon -m pegen typthon <GRAMMAR FILE>".
ENDMARKER ENDMARKER
NAME NAME

View File

@@ -1,7 +1,7 @@
-- ASDL's 4 builtin types are: -- ASDL's 4 builtin types are:
-- identifier, int, string, constant -- identifier, int, string, constant
module Python module Typthon
{ {
mod = Module(stmt* body, type_ignore* type_ignores) mod = Module(stmt* body, type_ignore* type_ignores)
| Interactive(stmt* body) | Interactive(stmt* body)

View File

@@ -10,7 +10,7 @@ All stubs are implemented in: `Python/frozen_stubs.c`
### 1. Frozen Modules ### 1. Frozen Modules
**Purpose**: CPython's frozen modules system allows embedding Python code as C arrays. These are normally generated during the build process. **Purpose**: Typthon's frozen modules system allows embedding Typthon code as C arrays. These are normally generated during the build process.
**Stubs Created**: **Stubs Created**:
- `_PyImport_FrozenBootstrap` - Bootstrap frozen modules - `_PyImport_FrozenBootstrap` - Bootstrap frozen modules
@@ -59,7 +59,7 @@ All stubs are implemented in: `Python/frozen_stubs.c`
### 5. Path Configuration ### 5. Path Configuration
**Purpose**: Initialize Python module search paths. **Purpose**: Initialize Typthon module search paths.
**Stubs Created**: **Stubs Created**:
- `_PyConfig_InitPathConfig()` - Initializes path configuration - `_PyConfig_InitPathConfig()` - Initializes path configuration
@@ -115,7 +115,7 @@ This prevents the code from attempting to call the non-existent `plock()` functi
These stubs mean the following features are not available in this build: These stubs mean the following features are not available in this build:
1. **No frozen modules**: Cannot embed Python code as frozen C arrays 1. **No frozen modules**: Cannot embed Typthon code as frozen C arrays
2. ~~**No fault handler**: No signal handling for crashes/segfaults~~ **✅ RESOLVED** - Fault handler is now available 2. ~~**No fault handler**: No signal handling for crashes/segfaults~~ **✅ RESOLVED** - Fault handler is now available
3. **No plock**: No Solaris-style process memory locking 3. **No plock**: No Solaris-style process memory locking
4. ~~**Minimal build info**: Git metadata is stubbed with placeholder values~~ **✅ IMPROVED** - Git metadata now shows actual branch and commit 4. ~~**Minimal build info**: Git metadata is stubbed with placeholder values~~ **✅ IMPROVED** - Git metadata now shows actual branch and commit
@@ -123,7 +123,7 @@ These stubs mean the following features are not available in this build:
## Future Improvements ## Future Improvements
To get a fully-functional Python interpreter, the following would be needed: To get a fully-functional Typthon interpreter, the following would be needed:
1. Generate actual frozen modules using `Tools/build/freeze_modules.py` 1. Generate actual frozen modules using `Tools/build/freeze_modules.py`
2. ~~Re-enable and fix the faulthandler module compilation~~ **✅ COMPLETED** 2. ~~Re-enable and fix the faulthandler module compilation~~ **✅ COMPLETED**