Skip to content

Commit

Permalink
new readme to code
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaurav-Ban22 committed Nov 18, 2022
1 parent 7d439ac commit 761757b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,13 @@ from stoic import stoicFile
langs = stoicFile("languages.stoic")
print(langs.getSubsection("languages").getSubsection("python").getValue("typing"))
```
or
```python
from stoic import stoicFile
langs = stoicFile("languages.stoic")
subS = langs.getSubsection("languages").getSubsection("python")
print(subS.getValue("typing"))
```

This would print "dynamic" to the console, or whatever you wrote in the field.
If this seems like a lot, you can use the shorthand syntax, which is noy only a bit more intuitive but also quicker and easier to use. The shorthand syntax and more is explained in the documentation, which you can find here.
Expand Down
3 changes: 3 additions & 0 deletions cars.stoic
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ cars:
unitsSold: 300
amogus: 200
unitsSold: 300
amogus: 200
unitsSold: 300
color: blue
horsepower: 30
toyota: 30
Expand Down Expand Up @@ -216,6 +218,7 @@ cars:
coolnessLvl: 100
coolnessLvl: 100
coolnessLvl: 100
coolnessLvl: 100
horsepower: 100
color: red
mazda: 34
Expand Down
1 change: 1 addition & 0 deletions langstoic.stoic
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ languages:
js: interpreted
python: interpreted
static:
cpp: compiled
nim: compiled
java: compiled
c: compiled
1 change: 1 addition & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -616,6 +616,7 @@ def printOut(self):
langs = stoicFile("langstoic.stoic")

langs.sEval("/ languages / static + nim compiled")
langs.sEval("/ languages / static + cpp compiled")
#my code hath cmpile and i commite dnadpusehd to github

#levenshtein distance algo
Expand Down

0 comments on commit 761757b

Please sign in to comment.