L und L' (L' = komplementäre Sprache zu L)
- DEA, der die Sprache L akzeptiert bilden.
- DEA zu totalem DEA umwandeln.
- Komplementären DEA L' bilden, wie folgt:
| { | |
| "caret_extra_width": 1, | |
| "color_scheme": "Packages/ayu/ayu-mirage.sublime-color-scheme", | |
| "ensure_newline_at_eof_on_save": true, | |
| "font_face": "Cascadia Code", | |
| "font_options": | |
| [ | |
| "dlig", | |
| "no_italic", | |
| "no_bold" |
| typedef char* string; | |
| #define class struct; | |
| // Definition of Datastructures | |
| // stars (*) indicate a reference to another data structure | |
| // Think of it as a `belongs_to` relation. | |
| // | |
| // Every object has an id as well as a updated and created timestamp |
| public class Person { | |
| /* | |
| * Es ist in Java Konvetion alle Objektvariablen als "private" zu deklarieren, | |
| * das hat den Vorteil, dass ein Benutzer der Klasse nicht einfach eine | |
| * möglicherweiße fehlerhafte Variable setzt, beispielsweiße -1 für das Alter | |
| * der Person | |
| */ | |
| private Person ehepartner; | |
| private String vorname; | |
| private String nachname; |
| /** | |
| * ISBN Class | |
| * Represents an ISBN can check its correctness and | |
| * complete an partial ISBN | |
| * @author Tim Kächele | |
| * @copyright Copyright (c) 2014 Tim Kächele | |
| * @license MIT License | |
| */ | |
| import java.util.ArrayList; |
| require 'time' | |
| class WhatsappMessage | |
| def initialize line | |
| @matches = /(\d{2}.\d{2}.\d{2} \d{2}:\d{2}:\d{2}): (.+?): (.+{1,})/.match(line) | |
| end | |
| def date | |
| Time.strptime(@matches[1], "%d.%m.%y %H:%M:%S") |