Skip to content

Commit 805cb0c

Browse files
committed
Added GSAM
1 parent 54d6195 commit 805cb0c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+1457
-0
lines changed

py313-mac/bin/gsam

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/Users/aditya/Projects/GraphScript/gs-runtimes/py313-mac/bin/python3.13
2+
# -*- coding: utf-8 -*-
3+
import re
4+
import sys
5+
from gsam.cli import main
6+
if __name__ == '__main__':
7+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
8+
sys.exit(main())

py313-mac/bin/gsam-compiler

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/Users/aditya/Projects/GraphScript/gs-runtimes/py313-mac/bin/python3.13
2+
# -*- coding: utf-8 -*-
3+
import re
4+
import sys
5+
from gsam.cli import main
6+
if __name__ == '__main__':
7+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
8+
sys.exit(main())

py313-mac/bin/gsam-compiler-cli

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/Users/aditya/Projects/GraphScript/gs-runtimes/py313-mac/bin/python3.13
2+
# -*- coding: utf-8 -*-
3+
import re
4+
import sys
5+
from gsam.cli import main
6+
if __name__ == '__main__':
7+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
8+
sys.exit(main())

py313-mac/bin/gsamc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/Users/aditya/Projects/GraphScript/gs-runtimes/py313-mac/bin/python3.13
2+
# -*- coding: utf-8 -*-
3+
import re
4+
import sys
5+
from gsam.cli import main
6+
if __name__ == '__main__':
7+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
8+
sys.exit(main())

py313-mac/bin/gsamc-cli

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/Users/aditya/Projects/GraphScript/gs-runtimes/py313-mac/bin/python3.13
2+
# -*- coding: utf-8 -*-
3+
import re
4+
import sys
5+
from gsam.cli import main
6+
if __name__ == '__main__':
7+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
8+
sys.exit(main())
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pip
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
Metadata-Version: 2.4
2+
Name: gsam
3+
Version: 0.0.19
4+
Summary: A compiler for the GSAM language.
5+
Home-page: https://github.com/AttAditya/gsam-compiler
6+
Author: AttAditya
7+
Requires-Python: >=3.8
8+
Description-Content-Type: text/markdown
9+
Dynamic: author
10+
Dynamic: description
11+
Dynamic: description-content-type
12+
Dynamic: home-page
13+
Dynamic: requires-python
14+
Dynamic: summary
15+
16+
# GSAM Compiler
17+
18+
> **[Checkout Demo: https://youtu.be/JxTBTcGciJ0](https://youtu.be/JxTBTcGciJ0)**
19+
20+
GSAM (Graph Script Ain't Markup) is a simple, scripting language designed for creating and executing logic flows through a component-based syntax. It powers scripting via minimal, readable components that map easily to visual nodes — perfect for both beginners and experienced developers building logic-driven applications.
21+
22+
# 📘 What is GSAM?
23+
24+
GSAM is a scripting language that emphasizes visual logic and node-based workflows. It is meant to be easily parseable, human-readable, and extensible, designed primarily for use in scripting engines or tools like GraphScript.
25+
26+
Think of it like writing logic in blocks, but as text.
27+
28+
# 🔤 Example Syntax (Hello World)
29+
30+
```
31+
output
32+
"Hello, World!"
33+
endline
34+
```
35+
36+
# 📦 Installing the GSAM Compiler
37+
38+
Make sure you have Python 3.8+ installed.
39+
40+
## Using `pipx`
41+
42+
You can install GSAM globally using pipx:
43+
44+
```bash
45+
pipx install gsam
46+
```
47+
48+
## Using `pip`
49+
50+
You can also install GSAM using pip:
51+
52+
```bash
53+
pip install gsam
54+
```
55+
56+
# ▶️ Running a GSAM Script
57+
58+
Once installed, run any .gsam file like this:
59+
60+
```bash
61+
gsamc path/to/your_file.gsam
62+
```
63+
64+
If you want to test quickly:
65+
66+
```bash
67+
echo 'output\n "Hi!"\n endline' > test.gsam
68+
gsamc test.gsam
69+
```
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
../../../bin/gsam,sha256=-N70eNLrbj9qn6HgP28UH6fTUkLIGWUUppUipW9XiOY,262
2+
../../../bin/gsam-compiler,sha256=-N70eNLrbj9qn6HgP28UH6fTUkLIGWUUppUipW9XiOY,262
3+
../../../bin/gsam-compiler-cli,sha256=-N70eNLrbj9qn6HgP28UH6fTUkLIGWUUppUipW9XiOY,262
4+
../../../bin/gsamc,sha256=-N70eNLrbj9qn6HgP28UH6fTUkLIGWUUppUipW9XiOY,262
5+
../../../bin/gsamc-cli,sha256=-N70eNLrbj9qn6HgP28UH6fTUkLIGWUUppUipW9XiOY,262
6+
gsam-0.0.19.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
7+
gsam-0.0.19.dist-info/METADATA,sha256=AcfZxUQ-AKBSw5Issk_r8nxi6NK8MRG_Mw9_P8IcvO4,1650
8+
gsam-0.0.19.dist-info/RECORD,,
9+
gsam-0.0.19.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10+
gsam-0.0.19.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
11+
gsam-0.0.19.dist-info/entry_points.txt,sha256=ibswFC-0uTjiMe0juT8blSozXyYm4RzBaEGJQf5Grps,151
12+
gsam-0.0.19.dist-info/top_level.txt,sha256=MJOHrhoDx9W8d7erN8lM4o8tBWNdbHTaBLGWy2WVIGI,5
13+
gsam/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14+
gsam/__pycache__/__init__.cpython-313.pyc,,
15+
gsam/__pycache__/cli.cpython-313.pyc,,
16+
gsam/__pycache__/core.cpython-313.pyc,,
17+
gsam/cli.py,sha256=o43710pVFjbUvY639enrGzikvtpMjeJKNMDFImDikzg,1031
18+
gsam/components/__init__.py,sha256=EAUMCSWrm7T96rzqSOqXCh-1n4ImnnvF0oFMkTitTjY,635
19+
gsam/components/__pycache__/__init__.cpython-313.pyc,,
20+
gsam/components/__pycache__/collection.cpython-313.pyc,,
21+
gsam/components/__pycache__/component.cpython-313.pyc,,
22+
gsam/components/__pycache__/console.cpython-313.pyc,,
23+
gsam/components/__pycache__/control.cpython-313.pyc,,
24+
gsam/components/__pycache__/literal.cpython-313.pyc,,
25+
gsam/components/__pycache__/loop.cpython-313.pyc,,
26+
gsam/components/__pycache__/operator.cpython-313.pyc,,
27+
gsam/components/collection.py,sha256=uMBInz9WSqle8CT4Std1Jl49olTLhdblLo8ftiRO-14,5862
28+
gsam/components/component.py,sha256=EKOwk26BaVM7DXYBHykXh7f7hh-uvc9SQJmQutq4ptk,2720
29+
gsam/components/console.py,sha256=C6PBhq_ozTU7F5PYD_Uko3txNdK5GQAVjeQz2-wNbr0,1076
30+
gsam/components/control.py,sha256=ob-Y7M3FbEUjUV7WU_7duafeb-9Bn8YgcaDPShKApyU,878
31+
gsam/components/literal.py,sha256=Luj6uGV0RZ2w82FtprHfdaUz-jn-r4w09dA84haIqys,1442
32+
gsam/components/loop.py,sha256=0sarDtrDEblrQpxQkSj9zIKTIMJz2nL65u2SXyC2CKk,871
33+
gsam/components/operator.py,sha256=hOGADzF7jKLkoG_suJCadsctCqQHQhjot4CMWmNjLDU,4347
34+
gsam/core.py,sha256=zNvyNQLd2izGRnsjTZaksrnYgXDcyvVp7CC8ebkhDsY,459
35+
gsam/internals/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
36+
gsam/internals/__pycache__/__init__.cpython-313.pyc,,
37+
gsam/internals/__pycache__/ghost.cpython-313.pyc,,
38+
gsam/internals/__pycache__/parser.cpython-313.pyc,,
39+
gsam/internals/__pycache__/registry.cpython-313.pyc,,
40+
gsam/internals/ghost.py,sha256=jd5_7JF3CnNVTDILrSAphTFoqw-WFswyl8_lkvHFDBI,367
41+
gsam/internals/parser.py,sha256=ZgmX79tbrL98S9Xdt005-17bMFrlQZS8ogt1pilzQVc,2589
42+
gsam/internals/registry.py,sha256=3gpDOULdG14mvgWVNaQumEF60fRDbx5cjNOW4dHY7eQ,1369
43+
gsam/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
44+
gsam/models/__pycache__/__init__.cpython-313.pyc,,
45+
gsam/models/__pycache__/base_node.cpython-313.pyc,,
46+
gsam/models/__pycache__/node.cpython-313.pyc,,
47+
gsam/models/__pycache__/node_signal.cpython-313.pyc,,
48+
gsam/models/__pycache__/node_type.cpython-313.pyc,,
49+
gsam/models/base_node.py,sha256=O-5nMsX-nTYiY7YIwrAVdz7_BquD05p8grTpAkZ5b_c,1964
50+
gsam/models/node.py,sha256=M8QVx-sUz4yaRp-h-5GIuJPhG4sgiClPHCAzJpRFTDA,2485
51+
gsam/models/node_signal.py,sha256=UrmvkKCgaqY1e2UOFCqTdJxVavojIvyBsGp3TqvPSXo,96
52+
gsam/models/node_type.py,sha256=fypFoYTIqHef4JBSikLt35lef4wiYtxZgIermPPrDsw,159

py313-mac/lib/python3.13/site-packages/gsam-0.0.19.dist-info/REQUESTED

Whitespace-only changes.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Wheel-Version: 1.0
2+
Generator: setuptools (80.9.0)
3+
Root-Is-Purelib: true
4+
Tag: py3-none-any
5+

0 commit comments

Comments
 (0)