EkBass commited on
Commit
4df0eca
·
verified ·
1 Parent(s): fa8bdfc

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +9 -100
README.md CHANGED
@@ -30,18 +30,22 @@ tags:
30
  - language-reference
31
  ---
32
 
33
- # Dataset Card — BazzBasic Language Reference
 
 
 
 
34
 
35
  ## Usage
36
 
37
  Download latest *BazzBasic-AI-guide* from **Files and versions**
38
 
39
- Upload it as post attachment, project file etc. and your AI has all necessary information about BazzBasic.
40
 
41
 
42
- ## Dataset Summary
43
 
44
- This dataset contains the official language reference and AI guide for **BazzBasic**, a modern BASIC interpreter built on .NET 10 with SDL2 graphics and SDL2_mixer audio support. The guide is intended to enable AI models to accurately understand, explain, and generate valid BazzBasic code.
45
 
46
  BazzBasic is an original BASIC dialect — not a clone of any existing implementation. It aims to make programming accessible and enjoyable while providing modern capabilities such as sprite rendering, sound playback, HTTP networking, fast trigonometry lookup tables, and standalone executable compilation.
47
 
@@ -57,112 +61,17 @@ BazzBasic is an original BASIC dialect — not a clone of any existing implement
57
 
58
  ## Intended Use
59
 
60
- This dataset is designed for:
61
 
62
  - **AI training and fine-tuning** — teaching models to understand and generate BazzBasic syntax correctly
63
  - **RAG (Retrieval-Augmented Generation)** — providing accurate language reference at inference time
64
  - **AI assistant context** — enabling assistants to guide new programmers through BazzBasic or generate working code on request
65
 
66
- ### Out-of-scope use
67
-
68
- This reference is specific to BazzBasic 1.0. It should not be used to represent other BASIC dialects (QBasic, FreeBASIC, Liberty BASIC, etc.), as BazzBasic has its own distinct syntax and conventions.
69
-
70
- ---
71
-
72
- ## Dataset Structure
73
-
74
- The dataset consists of a single comprehensive Markdown document covering the full BazzBasic language. Major sections:
75
-
76
- | Section | Content |
77
- |---------|---------|
78
- | Syntax Fundamentals | Variables (`$` suffix), constants (`#` suffix), scope, operators |
79
- | Arrays | Dynamic arrays, associative arrays, multi-dimensional, mixed indexing |
80
- | Control Flow | IF/ELSEIF/ENDIF, FOR/NEXT, WHILE/WEND, GOTO, GOSUB, labels |
81
- | User-Defined Functions | DEF FN, isolated scope, recursion, libraries (.bb) |
82
- | I/O Commands | PRINT, INPUT, LINE INPUT, INKEY, KEYDOWN, LOCATE, COLOR |
83
- | Math Functions | ABS, SIN, COS, TAN, LERP, CLAMP, DISTANCE, MOD, POW, and more |
84
- | Math Constants | PI, HPI, QPI, TAU, EULER |
85
- | Fast Trigonometry | FastTrig lookup tables (~20x faster than SIN/COS), 1° precision |
86
- | String Functions | MID, LEFT, RIGHT, SPLIT, REPLACE, INSTR, and more |
87
- | File I/O | FileRead, FileWrite, FileExists, FileDelete, FileList |
88
- | Network | HTTPGET, HTTPPOST |
89
- | Sound | LOADSOUND, SOUNDONCE, SOUNDREPEAT, SOUNDSTOP, SOUNDSTOPALL |
90
- | Graphics | SCREEN, SCREENLOCK, LINE, CIRCLE, PSET, PAINT, RGB |
91
- | Sprite System | LOADSHAPE, LOADIMAGE, LOADSHEET, MOVESHAPE, ROTATESHAPE, DRAWSHAPE |
92
- | Mouse Input | MOUSEX, MOUSEY, MOUSEB |
93
- | Built-in Constants | Full key constant tables (arrows, function keys, numpad, alphabet, etc.) |
94
- | Source Control | INCLUDE, compiled libraries (.bb) |
95
- | Common Patterns | Game loop, HTTP, save/load, sound with graphics |
96
- | Code Style | Naming conventions, program structure, subroutine indentation |
97
-
98
- ---
99
-
100
- ## Key Language Characteristics
101
-
102
- An AI model should understand these BazzBasic-specific rules to generate correct code:
103
-
104
- **Variable and constant suffixes**
105
- - `$` suffix = mutable variable (numbers or strings, typeless)
106
- - `#` suffix = immutable constant
107
- - Arrays declared with `DIM`, accessed with `arr$(index)`
108
-
109
- **LET usage**
110
- - `LET` declares a variable; use only once per variable
111
- - Subsequent assignments use bare `var$ = value` syntax (no LET)
112
- - Declaring all variables upfront in an `[inits]` subroutine is best practice
113
-
114
- **Scope**
115
- - Main program has a single flat scope
116
- - `DEF FN` functions have completely isolated scope — no access to global variables, only global constants (`#`)
117
-
118
- **Graphics**
119
- - Always use `SCREENLOCK ON / SCREENLOCK OFF` for flicker-free animation
120
- - `LINE (x1,y1)-(x2,y2), color, BF` (filled box) is faster than `CLS` for clearing
121
- - Sprites are positioned by their **top-left point**
122
- - `SCREENLOCK` blocks `GETCONSOLE` — use array-based collision detection instead
123
-
124
- **FastTrig**
125
- - `FastTrig(TRUE)` enables degree-based lookup tables for sin/cos
126
- - Use `FastCos(angle)` / `FastSin(angle)` — angles in degrees, auto-normalized 0–359
127
- - ~20x faster than `SIN`/`COS` — essential for raycasting, particle systems, etc.
128
-
129
- **Naming conventions**
130
- - Variables: `camelCase$`
131
- - Constants: `UPPER_SNAKE_CASE#`
132
- - Arrays: `camelCase$`
133
- - Functions: `PascalCase$` (called with `FN` prefix)
134
- - Subroutine labels: `[sub:name]`
135
-
136
- ---
137
-
138
- ## Example Programs
139
-
140
- Real BazzBasic programs available at the official repository:
141
-
142
- | Program | Description | URL |
143
- |---------|-------------|-----|
144
- | raycaster_3d_optimized | 3D raycaster using FastTrig | https://raw.githubusercontent.com/EkBass/BazzBasic/refs/heads/main/Examples/raycaster_3d_optimized.bas |
145
- | voxel_terrain | Voxel space terrain renderer | https://raw.githubusercontent.com/EkBass/BazzBasic/refs/heads/main/Examples/voxel_terrain.bas |
146
- | countdown_demo | Sprite sheet loading demo | https://github.com/EkBass/BazzBasic/blob/main/Examples/countdown_demo.bas |
147
- | Eliza | Classic AI chatbot port | https://github.com/EkBass/BazzBasic/blob/main/Examples/Eliza.bas |
148
-
149
- More examples: https://github.com/EkBass/BazzBasic/tree/main/Examples
150
-
151
- ---
152
-
153
- ## Data Collection
154
-
155
- The reference document was authored directly by the BazzBasic interpreter developer, Kristian Virtanen. It represents authoritative, hand-written documentation of the language — not scraped or machine-generated content.
156
-
157
- ---
158
-
159
  ## Community and Support
160
 
161
  | Channel | URL |
162
  |---------|-----|
163
  | GitHub Discussions | https://github.com/EkBass/BazzBasic/discussions |
164
- | Discord | https://discord.com/channels/682603735515529216/1464283741919907932 |
165
- | ThinBasic subforum | https://www.thinbasic.com/community/forumdisplay.php?401-BazzBasic |
166
 
167
  ---
168
 
 
30
  - language-reference
31
  ---
32
 
33
+ # Dataset Card — BazzBasic AI Guide
34
+
35
+ The BazzBasic AI Guide **is not** a JSON dataset.
36
+
37
+ The BazzBasic AI Guide is a powerful guide produced and approved by Claude.ai, ChatGPT and Mistral Le Chat, specifically designed to be interpreted by AI.
38
 
39
  ## Usage
40
 
41
  Download latest *BazzBasic-AI-guide* from **Files and versions**
42
 
43
+ Upload it to your AI's prompt or project file and it will instantly become a BazzBasic expert.
44
 
45
 
46
+ ## Guide Summary
47
 
48
+ This guide contains the official language reference and AI guide for **BazzBasic**, a modern BASIC interpreter built on .NET 10 with SDL2 graphics and SDL2_mixer audio support. The guide is intended to enable AI models to accurately understand, explain, and generate valid BazzBasic code.
49
 
50
  BazzBasic is an original BASIC dialect — not a clone of any existing implementation. It aims to make programming accessible and enjoyable while providing modern capabilities such as sprite rendering, sound playback, HTTP networking, fast trigonometry lookup tables, and standalone executable compilation.
51
 
 
61
 
62
  ## Intended Use
63
 
64
+ This guide is designed for:
65
 
66
  - **AI training and fine-tuning** — teaching models to understand and generate BazzBasic syntax correctly
67
  - **RAG (Retrieval-Augmented Generation)** — providing accurate language reference at inference time
68
  - **AI assistant context** — enabling assistants to guide new programmers through BazzBasic or generate working code on request
69
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
70
  ## Community and Support
71
 
72
  | Channel | URL |
73
  |---------|-----|
74
  | GitHub Discussions | https://github.com/EkBass/BazzBasic/discussions |
 
 
75
 
76
  ---
77