Initial commit: Oraset programming language with documentation

This commit is contained in:
JGZSunShineMod1.0.3
2026-04-24 21:54:58 +08:00
commit 2089d28529
131 changed files with 28968 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
#!/usr/bin/env python3
import sys
sys.path.insert(0, 'f:/Oraset')
from oraset import Lexer
source = '''input username "test"'''
lexer = Lexer(source)
tokens = []
while True:
tok = lexer.get_next_token()
tokens.append(tok)
print(f"Token: type={tok.type}, value={repr(tok.value)}, line={tok.line}, col={tok.column}")
if tok.type == 'EOF':
break