Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Files #6

Open
PokeJofeJr4th opened this issue Jun 30, 2023 · 0 comments
Open

Feature: Files #6

PokeJofeJr4th opened this issue Jun 30, 2023 · 0 comments
Labels
feature New feature or request

Comments

@PokeJofeJr4th
Copy link
Owner

File Structure

Write five or more equals signs to start a new file. This removes the need for multiple files or any build process.

const const score = 5!
print(score)! //5

=====================

const const score = 3!
print(score)! //3

New for 2022!

Thanks to recent advances in technology, you can now give files names.

======= add.db =======
function add(a, b) => {
   return a + b!
}

Exporting

Many languages allow you to import things from specific files. In DreamBerd, importing is simpler. Instead, you export to specific files!

===== add.db ==
function add(a, b) => {
   return a + b!
}

export add to "main.db"!

===== main.db ==
import add!
add(3, 2)!
@PokeJofeJr4th PokeJofeJr4th added the feature New feature or request label Jun 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant