├── .gitattributes ├── .gitignore ├── .vscode ├── launch.json └── tasks.json ├── .vscodeignore ├── CHANGELOG.md ├── LICENSE ├── README.md ├── extension.js ├── icon ├── icon.png └── play-dark.svg ├── language-configuration.json ├── package.json ├── snippets.json ├── syntaxes └── pseudocode.tmLanguage.json ├── themes └── GreekPseudocodeTheme-color-theme.json └── vsc-extension-quickstart.md /.gitattributes: -------------------------------------------------------------------------------- 1 | # Set default behavior to automatically normalize line endings. 2 | * text=auto 3 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | *.vsix -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- 1 | // A launch configuration that launches the extension inside a new window 2 | // Use IntelliSense to learn about possible attributes. 3 | // Hover to view descriptions of existing attributes. 4 | // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 5 | { 6 | "version": "0.2.0", 7 | "configurations": [ 8 | { 9 | "name": "Extension", 10 | "type": "extensionHost", 11 | "request": "launch", 12 | "args": [ 13 | "--extensionDevelopmentPath=${workspaceFolder}" 14 | ] 15 | }, 16 | { 17 | "label": "Compile EAP File", 18 | "type": "shell", 19 | "command": "pli10", 20 | "args": [ 21 | "${file}" 22 | ], 23 | "problemMatcher": [], 24 | "detail": "Compile the EAP file using pli10" 25 | } 26 | ] 27 | } 28 | -------------------------------------------------------------------------------- /.vscode/tasks.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "2.0.0", 3 | "tasks": [ 4 | { 5 | "label": "Compile EAP File", 6 | "type": "shell", 7 | "command": "pli10", 8 | "args": [ 9 | "${file}" 10 | ], 11 | "problemMatcher": [], 12 | "detail": "Compile the EAP file using pli10" 13 | }, 14 | { 15 | "label": "Run EAP File", 16 | "type": "shell", 17 | "command": "${fileDirname}\\${fileBasenameNoExtension}.exe", 18 | "problemMatcher": [], 19 | "detail": "Run the compiled EAP file" 20 | } 21 | ] 22 | } 23 | -------------------------------------------------------------------------------- /.vscodeignore: -------------------------------------------------------------------------------- 1 | .vscode/** 2 | .vscode-test/** 3 | .gitignore 4 | vsc-extension-quickstart.md 5 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | Όλες οι σημαντικές αλλαγές σε αυτό το project θα καταγράφονται εδώ. 4 | 5 | ## [1.3.0] - 12/11/2024 6 | ### Προσθήκες 7 | - Προστέθηκαν keywords στο αρχείο `package.json` για να είναι πιο εύκολα ανιχνεύσιμο το extension. 8 | - Δημιουργήθηκε git repository ώστε οι χρήστες να έχουν πρόσβαση στον κώδικα. 9 | - Προσθήκη των παρακάτω εντολών στους χρωματισμούς του κώδικα: ```ΔΙΑΔΙΚΑΣΙΑ,ΔΙΕΠΑΦΗ,ΕΙΣΟΔΟΣ,ΕΞΟΔΟΣ,ΣΥΝΑΡΤΗΣΗ,-ΣΥΝΑΡΤΗΣΗΣ,ΔΙΑΒΑΣΕ,ΤΥΠΩΣΕ`` 10 | 11 | ### Διορθώσεις 12 | - Επιδιορθώθηκε το λάθος στο αρχειο pseudocode.tmLanguage.json (πρόσθετο `|`) για το σωστό χρωματισμό των keywords. 13 | 14 | --- 15 | 16 | ## [1.4.0] - 13/11/2024 17 | ### Προσθήκες 18 | -Προσθήκη της εντολής ```ΕΩΣ``` στους χρωματισμούς του κώδικα. 19 | 20 | --- 21 | 22 | ## [1.5.0] - 14/11/2024 23 | ### Προσθήκες 24 | - Προστέθηκε Indentation στο Extension για εντολές επανάλληψης! 25 | - Προστεθηκε χρωματισμός στις λέξεις: BOOLEAN, STRING, ΤΥΠΟΙ, ΜΕ ΒΗΜΑ 26 | 27 | ## [1.5.1] - 17/11/2024 28 | ### Προσθήκες 29 | - Αλλαγή κατηγορίας σε Formatters! 30 | 31 | ## [1.5.2] - 20/11/2024 32 | ### Προσθήκες 33 | - Προστέθηκε το Version του Extension στο αρχείο README.MD για το Github 34 | 35 | ## [1.6.0] - 21/11/2024 36 | ### Προσθήκες 37 | - Διόρθωση της λέξης ```ΜΕ-ΒΗΜΑ``` 38 | - Προσθήκη **Snippet Κώδικα*** για ευκολότερη υπενθύμιση και γραφή του κώδικα στις εντολές επανάλληψης 39 | ```ΓΙΑ, ΕΑΝ, ΕΝΟΣΩ, ΕΠΑΝΑΛΑΒΕ``` 40 | 41 | ## [1.7.1] - 23/11/2024 42 | ### Προσθήκες 43 | - Προστέθηκε η επιλογή του **Compile & Run** με εικονίδιο! 44 | 45 | ## [1.7.3] - 23/11/2024 46 | ### Διόρθωση 47 | - Διορθώθηκε ο Compiler να τρέχει σε Command Prompt! 48 | 49 | ## [1.7.4] - 25/11/2024 50 | ### Διόρθωση 51 | - Διορθώθηκε το άνοιγμα των έξτρα Terminal και πλέον βγαίνει απο το infinite Loop αν ο χρήστης τρέχει ήδη το πρόγραμμα, περιμένει είσοδο και πατήσει Compile! 52 | 53 | ## [1.7.5] - 25/11/2024 54 | ### Διόρθωση 55 | - Διαγραφή του Snippet ΕΠΑΝΑΛΑΒΕ - ΜΕΧΡΙ λόγο προβλήματος μέσα σε Loop. 56 | - Προστέθηκαν οι εντολές ΤΥΠΩΣΕ() και ΔΙΑΒΑΣΕ() στα Snippets 57 | - Διόρθωση των εντολών στο αρχείο `language-configuration.json`. 58 | - Update Wiki και προσθήκη Popup Message για την επεξήγηση του Extension. 59 | 60 | ## [1.7.7] - 25/11/2024 61 | ### Διόρθωση 62 | - Αλλαγή του Icon στο Marketplace 63 | 64 | ## [1.7.8] - 26/11/2024 65 | ### Διόρθωση 66 | - Αλλαγή του Default **Encoding** σε Windows 1253! 67 | 68 | ## [1.7.9] - 30/11/2024 69 | ### Διόρθωση 70 | - Διόρθωση του **Overwrite** του χρωματισμού σε άλλες γλώσσες. 71 | 72 | ## [1.8.0] - 05/12/2024 73 | ### Προσθήκη 74 | - Προσθήκη **Manual Ψευδογλώσσας** στο Tab View Panel! 75 | 76 | ## [1.8.1] - 06/12/2024 77 | ### Προσθήκη 78 | - Προσθήκη MIT License budge, Ενημέρωση του Readme.md για την προσθήκη του **Manual**. 79 | 80 | ## [1.8.3] - 06/12/2024 81 | ### Προσθήκη 82 | - Ενημέρωση του Video εγκατάστασης. -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) [2024] [Achilleas Makris] 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Greek Pseudocode Extension 2 | 3 | [![Visual Studio Marketplace Version](https://img.shields.io/visual-studio-marketplace/v/greekpseudocode.greekpseudocode)](https://marketplace.visualstudio.com/items?itemName=greekpseudocode.greekpseudocode) [![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE) 4 | 5 |

Εισαγωγή

6 | 7 | #### Ένα extension σχεδιασμένο ειδικά για την ψευδογλώσσα του Ανοικτού Πανεπιστημίου, που προσφέρει χρωματισμό για λέξεις-κλειδιά και άλλες συντακτικές δομές. Η ψευδογλώσσα αυτή διευκολύνει την εκμάθηση προγραμματισμού και την επίλυση προβλημάτων και είναι ιδανική για αρχάριους και προχωρημένους προγραμματιστές. 8 | 9 |
10 | 11 |

Manual Page

12 | 13 | #### Μπορείτε να επισκεφθείτε το Manual Page για περισσότερες πληροφορίες σχετικά με τις λειτουργίες και συντακτικές δυνατότητες του εργαλείου εδώ: [Manual Page](https://greek-pseudocode-manual.readthedocs.io/operators.html) 14 | 15 | #### Μπορείτε να δείτε το επίσημο Manual Page repository εδώ: [Manual Page Repository GitHub](https://github.com/AchilleasMakris/readthedocs) 16 | 17 | --- 18 | 19 | ### Για την εγκατάσταση του Compiler, ακολουθήστε τις οδηγίες που αναφέρονται στο στο παρακάτω Video ή στο [Wiki](https://github.com/AchilleasMakris/vscode-pseudocode-extension/wiki) του project. 20 | 21 | --- 22 | 23 |

💾 Εγκατάσταση του Compiler.

24 | 25 | 26 |
Εγκατάσταση του Compiler του ΕΑΠ και του GreekPseudoCode Extension
31 | 32 | ### Παράδειγμα Compile & Run 33 | ![](https://i.imgur.com/FdbcR69.gif) 34 | 35 | ### Παράδειγμα Συνθήκης 36 | ![](https://i.imgur.com/v33yVRq.gif) 37 | 38 | 39 | ## Τεχνολογίες 40 | 41 | Το project αυτό έχει δημιουργηθεί με: 42 | 43 | - Visual Studio Code 44 | - JSON 45 | - Javascript 46 | 47 | ## Πηγές 48 | 49 | Μελέτη και αναφορές από τους εξής πόρους: 50 | 51 | - Google 52 | - ChatGPT 53 | - Youtube 54 | 55 | ## Έμπνευση 56 | 57 | Αυτό το project εμπνεύστηκε από την ανάγκη διευκόλυνσης της γραφής και ανάγνωσης ψευδοκώδικα στα ελληνικά. 58 | 59 | ## Κατάσταση 60 | 61 | Το project είναι σε ανάπτυξη! 62 | 63 | ## Συγγραφέας 64 | 65 | - **Makris Achilleas** 66 | 67 | --- 68 | 69 | ### 📝 License 70 | 71 | Αυτό το έργο χρησιμοποιεί το MIT License. Περισσότερες πληροφορίες μπορείτε να δείτε στο αρχείο `LICENSE`. -------------------------------------------------------------------------------- /extension.js: -------------------------------------------------------------------------------- 1 | const vscode = require("vscode"); 2 | const path = require("path"); 3 | 4 | let terminal; 5 | 6 | function activate(context) { 7 | const config = vscode.workspace.getConfiguration("greekpseudocode"); 8 | const isMuted = config.get("muteNotification", false); 9 | 10 | if (!isMuted) { 11 | vscode.window 12 | .showInformationMessage( 13 | "Προστέθηκαν Snippets βοήθειας του κώδικα! Μάθετε περισσότερα για τη λειτουργία του Extension.", 14 | "Μάθε περισσότερα", 15 | "Mute notification" 16 | ) 17 | .then((selection) => { 18 | if (selection === "Μάθε περισσότερα") { 19 | vscode.env.openExternal( 20 | vscode.Uri.parse( 21 | "https://github.com/AchilleasMakris/vscode-pseudocode-extension/wiki" 22 | ) 23 | ); 24 | } else if (selection === "Mute notification") { 25 | config.update("muteNotification", true, vscode.ConfigurationTarget.Global); 26 | } 27 | }); 28 | } 29 | 30 | // Register EAP runner 31 | const runEapCommand = vscode.commands.registerCommand( 32 | "greekpseudocode.runEap", 33 | function () { 34 | const editor = vscode.window.activeTextEditor; 35 | 36 | if (editor) { 37 | const filePath = editor.document.fileName; // Πλήρης διαδρομή αρχείου .eap 38 | const fileDir = path.dirname(filePath); // Διαδρομή φακέλου 39 | const fileName = path.basename(filePath);//Όνομα αρχείου 40 | const exeFileName = `${fileName}.exe`; // Δημιουργία ονόματος .eap.exe αρχείου 41 | // Έλεγχος αν υπάρχει ήδη τερματικό 42 | if (!terminal || terminal.exitStatus) { 43 | terminal = vscode.window.createTerminal("EAP Runner", "cmd.exe"); 44 | } else { 45 | // Στείλτε σήμα διακοπής (Ctrl+C) για να σταματήσει το τρέχον πρόγραμμα 46 | terminal.sendText("\x03", true); 47 | } 48 | 49 | terminal.show(); 50 | 51 | // Καθαρισμός τερματικού 52 | setTimeout(() => { 53 | terminal.sendText("cls", true); 54 | // Μεταγλώττιση του .eap αρχείου 55 | terminal.sendText(`pli10 "${filePath}"`, true); 56 | // Προσθήκη Enter για ολοκλήρωση μεταγλώττισης 57 | 58 | setTimeout(() => { 59 | terminal.sendText("", true); 60 | }, 1000); 61 | 62 | // Εκτέλεση του .eap.exe αρχείου 63 | setTimeout(() => { 64 | terminal.sendText(`"${exeFileName}"`, true); 65 | // Χρήση πλήρους ονόματος με .eap.exe 66 | }, 1500); 67 | }, 500); // Μικρή καθυστέρηση για να βεβαιωθούμε ότι η διακοπή έχει ολοκληρωθεί 68 | } else { 69 | vscode.window.showErrorMessage("Δεν υπάρχει ενεργό αρχείο .eap για εκτέλεση."); 70 | } 71 | } 72 | ); 73 | 74 | // Register command for opening Pseudocode Manual in a new editor window 75 | const openManualCommand = vscode.commands.registerCommand( 76 | "greekpseudocode.openManual", 77 | function () { 78 | // Create a webview panel 79 | const panel = vscode.window.createWebviewPanel( 80 | "pseudocodeManual", // Identifies the type of the webview 81 | "Pseudocode Manual", // Title of the panel 82 | vscode.ViewColumn.One, // Show in the first column (editor tab) 83 | { 84 | enableScripts: true, 85 | retainContextWhenHidden: true, 86 | } 87 | ); 88 | 89 | // Set the HTML content for the webview (embed the iframe for the manual) 90 | panel.webview.html = getWebviewContent(); 91 | } 92 | ); 93 | 94 | context.subscriptions.push(runEapCommand); 95 | context.subscriptions.push(openManualCommand); 96 | } 97 | 98 | function getWebviewContent() { 99 | return ` 100 | 101 | 102 | 103 | 104 | 105 | Pseudocode Manual 106 | 118 | 119 | 120 | 121 | 122 | 123 | `; 124 | } 125 | 126 | function deactivate() {} 127 | 128 | module.exports = { 129 | activate, 130 | deactivate, 131 | }; -------------------------------------------------------------------------------- /icon/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GreekPseudoCode/vscode-pseudocode-extension/9ae96eb2fe3882dfacc341c4f08e3510c46af143/icon/icon.png -------------------------------------------------------------------------------- /icon/play-dark.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 31 | 33 | 35 | 37 | 39 | 41 | 43 | 45 | 47 | 49 | 51 | 53 | 55 | 57 | 59 | 61 | 63 | -------------------------------------------------------------------------------- /language-configuration.json: -------------------------------------------------------------------------------- 1 | { 2 | "comments": { 3 | "lineComment": "//", 4 | "blockComment": ["/*", "*/"] 5 | }, 6 | "brackets": [ 7 | ["{", "}"], 8 | ["[", "]"], 9 | ["(", ")"] 10 | ], 11 | "autoClosingPairs": [ 12 | { "open": "{", "close": "}" }, 13 | { "open": "[", "close": "]" }, 14 | { "open": "(", "close": ")" }, 15 | { "open": "'", "close": "'", "notIn": ["string", "comment"] }, 16 | { "open": "\"", "close": "\"", "notIn": ["string"] }, 17 | { "open": "`", "close": "`", "notIn": ["string", "comment"] }, 18 | { "open": "/**", "close": " */", "notIn": ["string"] } 19 | ], 20 | "indentationRules": { 21 | "increaseIndentPattern": "^(.*(ΑΡΧΗ|ΔΕΔΟΜΕΝΑ|ΕΑΝ|ΓΙΑ|ΕΝΟΣΩ|ΑΛΛΙΩΣ|ΜΕΧΡΙ|ΜΕ ΒΗΜΑ|ΕΠΑΝΑΛΑΒΕ|ΤΟΤΕ|ΣΤΑΘΕΡΕΣ|ΕΙΣΟΔΟΣ|ΕΞΟΔΟΣ).*)$", 22 | "decreaseIndentPattern": "^(.*(ΕΑΝ-ΤΕΛΟΣ|ΕΝΟΣΩ-ΤΕΛΟΣ|ΤΕΛΟΣ-ΔΙΑΔΙΚΑΣΙΑΣ|ΓΙΑ-ΤΕΛΟΣ|ΤΕΛΟΣ).*)$" 23 | }, 24 | "onEnterRules": [ 25 | { 26 | "beforeText": "^(.*(ΕΑΝ-ΤΕΛΟΣ|ΓΙΑ-ΤΕΛΟΣ|ΕΝΟΣΩ-ΤΕΛΟΣ|ΑΛΛΙΩΣ-ΤΕΛΟΣ|ΜΕΧΡΙ-ΤΕΛΟΣ|-ΤΕΛΟΣ).*)$", 27 | "action": { "indent": "none" } 28 | }, 29 | { 30 | "beforeText": "^(.*(ΕΑΝ|ΓΙΑ|ΕΠΑΝΑΛΑΒΕ|ΕΝΟΣΩ|ΑΛΛΙΩΣ|ΜΕΧΡΙ).*)$", 31 | "action": { "indent": "indent" } 32 | }, 33 | { 34 | "beforeText": "^(\\s*)$", 35 | "action": { 36 | "indent": "none" 37 | } 38 | } 39 | ] 40 | } 41 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "greekpseudocode", 3 | "displayName": "Greek Pseudocode", 4 | "publisher": "GreekPseudoCode", 5 | "version": "1.8.4", 6 | 7 | "engines": { 8 | "vscode": "^1.95.0" 9 | }, 10 | "description": "Highlight the Pseudocode in Greek", 11 | "categories": [ 12 | "Formatters" 13 | ], 14 | "icon": "icon/icon.png", 15 | "keywords": [ 16 | "theme", 17 | "Formatters", 18 | "dark theme", 19 | "pseudocode", 20 | "pseudoglossa", 21 | "pseudwglwssa", 22 | "eap", 23 | "pseudo" 24 | ], 25 | "repository": { 26 | "type": "git", 27 | "url": "https://github.com/AchilleasMakris/vscode-pseudocode-extension" 28 | }, 29 | "main": "./extension.js", 30 | "contributes": { 31 | "languages": [ 32 | { 33 | "id": "pseudocode", 34 | "aliases": ["Pseudocode", "pseudocode"], 35 | "extensions": [".eap"], 36 | "configuration": "./language-configuration.json" 37 | } 38 | ], 39 | "grammars": [ 40 | { 41 | "language": "pseudocode", 42 | "scopeName": "source.greek-pseudocode", 43 | "path": "./syntaxes/pseudocode.tmLanguage.json" 44 | } 45 | ], 46 | "configurationDefaults": { 47 | "[pseudocode]": { 48 | "files.encoding": "windows1253" 49 | } 50 | }, 51 | "snippets": [ 52 | { 53 | "language": "pseudocode", 54 | "path": "./snippets.json" 55 | } 56 | ], 57 | "tokenColors": [ 58 | { 59 | "scope": "source.greek-pseudocode keyword.control.pseudocode", 60 | "settings": { 61 | "foreground": "#569CD6" 62 | } 63 | }, 64 | { 65 | "scope": "source.greek-pseudocode keyword.type.pseudocode", 66 | "settings": { 67 | "foreground": "#DA0CB7" 68 | } 69 | }, 70 | { 71 | "scope": "source.greek-pseudocode keyword.alg.pseudocode", 72 | "settings": { 73 | "foreground": "#2B95AFCF" 74 | } 75 | }, 76 | { 77 | "scope": "source.greek-pseudocode keyword.data.pseudocode", 78 | "settings": { 79 | "foreground": "#C586C0" 80 | } 81 | }, 82 | { 83 | "scope": "source.greek-pseudocode string.quoted.double.pseudocode", 84 | "settings": { 85 | "foreground": "#CE9178" 86 | } 87 | }, 88 | { 89 | "scope": "source.greek-pseudocode comment.block.pseudocode", 90 | "settings": { 91 | "foreground": "#6A9955" 92 | } 93 | } 94 | ], 95 | "commands": [ 96 | { 97 | "command": "greekpseudocode.runEap", 98 | "title": "Run EAP Program", 99 | "icon": "icon/play-dark.svg" 100 | }, 101 | { 102 | "command": "greekpseudocode.openManual", 103 | "title": "Open Pseudocode Manual" 104 | } 105 | ], 106 | "menus": { 107 | "commandPalette": [ 108 | { 109 | "command": "greekpseudocode.openManual", 110 | "when": "true" 111 | } 112 | ], 113 | "editor/title": [ 114 | { 115 | "command": "greekpseudocode.runEap", 116 | "when": "resourceExtname == .eap", 117 | "group": "navigation" 118 | }, 119 | { 120 | "command": "greekpseudocode.openManual", 121 | "when": "resourceExtname == .eap", 122 | "group": "navigation" 123 | } 124 | ] 125 | } 126 | } 127 | } -------------------------------------------------------------------------------- /snippets.json: -------------------------------------------------------------------------------- 1 | { 2 | "Επαναληπτική Δομή ΓΙΑ": { 3 | "prefix": "ΓΙΑ", 4 | "body": [ 5 | "ΓΙΑ ${1:συνθήκη} ΕΩΣ ${2:μεταβλητή τέλους} ΕΠΑΝΑΛΑΒΕ", 6 | "\t${3:εντολές}", 7 | "ΓΙΑ-ΤΕΛΟΣ" 8 | ], 9 | "description": "Δημιουργεί επαναληπτική δομή ΓΙΑ" 10 | }, 11 | "Επαναληπτική Δομή ΓΙΑ ΜΕ ΒΗΜΑ": { 12 | "prefix": "ΓΙΑ", 13 | "body": [ 14 | "ΓΙΑ ${1:συνθήκη} ΕΩΣ ${2:μεταβλητή τέλους} ΜΕ-ΒΗΜΑ ${3:αριθμός βήματος} ΕΠΑΝΑΛΑΒΕ", 15 | "\t${4:εντολές}", 16 | "ΓΙΑ-ΤΕΛΟΣ" 17 | ], 18 | "description": "Δημιουργεί επαναληπτική δομή ΓΙΑ ΜΕ ΒΗΜΑ" 19 | }, 20 | "Επαναληπτική Δομή ΕΑΝ": { 21 | "prefix": "ΕΑΝ", 22 | "body": [ 23 | "ΕΑΝ ${1:συνθήκη} ΤΟΤΕ", 24 | "\t${2:εντολές}", 25 | "ΕΑΝ-ΤΕΛΟΣ" 26 | ], 27 | "description": "Δημιουργεί επαναληπτική δομή ΕΑΝ" 28 | }, 29 | "Επαναληπτική Δομή ΕΝΟΣΩ": { 30 | "prefix": "ΕΝΟΣΩ", 31 | "body": [ 32 | "ΕΝΟΣΩ ${1:συνθήκη} ΕΠΑΝΑΛΑΒΕ", 33 | "\t${2:εντολές}", 34 | "ΕΝΟΣΩ-ΤΕΛΟΣ" 35 | ], 36 | "description": "Δημιουργεί επαναληπτική δομή ΕΝΟΣΩ" 37 | }, 38 | "ΤΥΠΩΣΕ": { 39 | "prefix": "ΤΥΠΩΣΕ", 40 | "body": [ 41 | "ΤΥΠΩΣΕ($0)" 42 | ], 43 | "description": "Εισάγει την εντολή εξόδου ΤΥΠΩΣΕ()" 44 | }, 45 | "ΔΙΑΒΑΣΕ": { 46 | "prefix": "ΔΙΑΒΑΣΕ", 47 | "body": [ 48 | "ΔΙΑΒΑΣΕ($0)" 49 | ], 50 | "description": "Εισάγει την εντολή εισόδου ΔΙΑΒΑΣΕ()" 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /syntaxes/pseudocode.tmLanguage.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json", 3 | "name": "Pseudocode", 4 | "patterns": [ 5 | { 6 | "include": "#keywords" 7 | }, 8 | { 9 | "include": "#strings" 10 | }, 11 | { 12 | "include": "#comments" 13 | } 14 | ], 15 | "repository": { 16 | "keywords": { 17 | "patterns": [ 18 | { 19 | "name": "keyword.control.pseudocode", 20 | "match": "\\b(ΕΑΝ|ΑΛΛΙΩΣ|ΥΠΟΛΟΓΙΣΕ|ΕΩΣ|ΓΙΑ|ΕΠΑΝΑΛΗΨΗ|ΔΙΑΒΑΣΕ|ΤΥΠΩΣΕ|ΕΝΩΣΩ|ΜΕΧΡΙ|ΕΠΑΝΑΛΑΒΕ|EOLN|AND|OR|ΕΝΟΣΩ|-ΤΕΛΟΣ|ΜΕ-ΒΗΜΑ|ΤΟΤΕ)\\b" 21 | }, 22 | { 23 | "name": "keyword.type.pseudocode", 24 | "match": "\\b(INTEGER|REAL|LOGIC|CHAR|ARRAY|BOOLEAN)\\b" 25 | }, 26 | { 27 | "name": "keyword.alg.pseudocode", 28 | "match": "\\b(ΑΛΓΟΡΙΘΜΟΣ)\\b" 29 | }, 30 | { 31 | "name": "keyword.data.pseudocode", 32 | "match": "\\b(ΑΡΧΗ|ΤΕΛΟΣ|-ΔΙΑΔΙΚΑΣΙΑΣ|ΔΕΔΟΜΕΝΑ|ΣΤΑΘΕΡΕΣ|ΔΙΑΔΙΚΑΣΙΑ|ΔΙΕΠΑΦΗ|ΕΙΣΟΔΟΣ|ΕΞΟΔΟΣ|ΣΥΝΑΡΤΗΣΗ|-ΣΥΝΑΡΤΗΣΗΣ|ΤΥΠΟΙ)\\b" 33 | } 34 | ] 35 | }, 36 | "strings": { 37 | "name": "string.quoted.double.pseudocode", 38 | "begin": "\"", 39 | "end": "\"", 40 | "patterns": [ 41 | { 42 | "name": "constant.character.escape.pseudocode", 43 | "match": "\\\\." 44 | } 45 | ] 46 | }, 47 | "comments": { 48 | "patterns": [ 49 | { 50 | "name": "comment.block.pseudocode", 51 | "begin": "/\\*", 52 | "end": "\\*/", 53 | "patterns": [ 54 | { 55 | "name": "comment.block.documentation.pseudocode", 56 | "match": "\\b(EOLN)\\b" 57 | } 58 | ] 59 | } 60 | ] 61 | } 62 | }, 63 | "scopeName": "source.greek-pseudocode" 64 | } 65 | -------------------------------------------------------------------------------- /themes/GreekPseudocodeTheme-color-theme.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "vscode://schemas/color-theme", 3 | "name": "Greek Pseudocode Theme", 4 | "type": "dark", 5 | "colors": { 6 | "editor.background": "#1E1E1E", 7 | "editor.foreground": "#d4d4d4" 8 | }, 9 | "tokenColors": [ 10 | { 11 | "scope": "keyword.control.pseudocode", 12 | "settings": { 13 | "foreground": "#569CD6" 14 | } 15 | }, 16 | { 17 | "scope": "keyword.type", 18 | "settings": { 19 | "foreground": "#da0cb7" 20 | } 21 | }, 22 | { 23 | "scope": "keyword.alg", 24 | "settings": { 25 | "foreground": "#2b95afcf" 26 | } 27 | }, 28 | { 29 | "scope": "keyword.data.pseudocode", 30 | "settings": { 31 | "foreground": "#C586C0" 32 | } 33 | } 34 | ] 35 | } -------------------------------------------------------------------------------- /vsc-extension-quickstart.md: -------------------------------------------------------------------------------- 1 | # Welcome to your VS Code Extension 2 | 3 | ## What's in the folder 4 | 5 | * This folder contains all of the files necessary for your extension. 6 | * `package.json` - this is the manifest file in which you declare your language support and define the location of the grammar file that has been copied into your extension. 7 | * `syntaxes/pseudocode.tmLanguage.json` - this is the Text mate grammar file that is used for tokenization. 8 | * `language-configuration.json` - this is the language configuration, defining the tokens that are used for comments and brackets. 9 | 10 | ## Get up and running straight away 11 | 12 | * Make sure the language configuration settings in `language-configuration.json` are accurate. 13 | * Press `F5` to open a new window with your extension loaded. 14 | * Create a new file with a file name suffix matching your language. 15 | * Verify that syntax highlighting works and that the language configuration settings are working. 16 | 17 | ## Make changes 18 | 19 | * You can relaunch the extension from the debug toolbar after making changes to the files listed above. 20 | * You can also reload (`Ctrl+R` or `Cmd+R` on Mac) the VS Code window with your extension to load your changes. 21 | 22 | ## Add more language features 23 | 24 | * To add features such as IntelliSense, hovers and validators check out the VS Code extenders documentation at https://code.visualstudio.com/docs 25 | 26 | ## Install your extension 27 | 28 | * To start using your extension with Visual Studio Code copy it into the `/.vscode/extensions` folder and restart Code. 29 | * To share your extension with the world, read on https://code.visualstudio.com/docs about publishing an extension. 30 | --------------------------------------------------------------------------------