-
-
Notifications
You must be signed in to change notification settings - Fork 552
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix #1107 Adds support for Mojo language * add Mojo support with test (#1107) * add Mojo support with test (#1107) * add Mojo support with test (#1107)
- Loading branch information
1 parent
029045a
commit f71c75d
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# 21 lines 15 code 3 comments 3 blanks | ||
|
||
|
||
''' | ||
This is a docstring. | ||
# It has multiple lines. | ||
This is the end of the docstring. | ||
''' | ||
def main(): | ||
# Hello Mojo! | ||
string = "Hello Mojo!" | ||
# The following line prints the string "Hello Mojo!" | ||
print(string) | ||
|
||
""" | ||
This piece of code prints | ||
the numbers "9", "6", and "3". | ||
'Here is a quote.' | ||
""" | ||
for x in range(9, 0, -3): | ||
print(x) |