Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More refactoring to become truly Pythonic.
- Loading branch information
1 parent
758d669
commit 4ac8f68
Showing
16 changed files
with
51 additions
and
98 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,6 @@ | ||
"""\ | ||
Meta class for C'Dent | ||
C'Dent runtime module used by all modules *written* in C'Dent/Python | ||
(module.cd.py). | ||
""" | ||
|
||
version = '0.01' | ||
|
||
id_to_language = { | ||
'cd': "C'Dent", | ||
'cpp': 'C++', | ||
'java': 'Java', | ||
'js': 'JavaScript', | ||
'php': 'PHP', | ||
'pm': 'Perl', | ||
'pm6': 'Perl 6', | ||
'py': 'Python', | ||
'py3': 'Python 3', | ||
'rb': 'Ruby', | ||
} | ||
|
||
def language(id): | ||
return id_to_language[id] |
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,22 @@ | ||
"""\ | ||
Meta class for the C'Dent compiler | ||
""" | ||
|
||
__version__ = '0.01' | ||
|
||
id_to_language = { | ||
'cd': "C'Dent", | ||
'cpp': 'C++', | ||
'java': 'Java', | ||
'js': 'JavaScript', | ||
'php': 'PHP', | ||
'pm': 'Perl', | ||
'pm6': 'Perl 6', | ||
'py': 'Python', | ||
'py3': 'Python 3', | ||
'rb': 'Ruby', | ||
} | ||
|
||
def language(id): | ||
return id_to_language[id] | ||
|
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
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
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.