Commits

Anonymous committed ae7d0dd

Various and sundry adjuments suiting automata.

Comments (0)

Files changed (6)

data/licenses.yaml

   type: License
   description: |
     The GNU Lesser General Public License.
+MPL 2.0:
+  type: License
+  description: |
+    The Mozilla Public License 2.0.
+  links:
+  - http://www.mozilla.org/MPL/2.0/
+  - http://www.mozilla.org/MPL/2.0/FAQ.html
 Erlang Public License:
   type: License
   links:

data/original-automata.yaml

   reference: true
   prebuilt-for-platforms:
   - Perl
+  - Javascript
   in-distribution: Braktif distribution
   license: BSD license
   implementation-type: formal description
   in-distribution: Circute distribution
   prebuilt-for-platforms:
   - Perl
+  - Javascript
   license: BSD license
   implementation-type: formal description
   host-language: ALPACA
   in-distribution: Jaccia and Jacciata distribution
   prebuilt-for-platforms:
   - Perl
+  - Javascript
   license: BSD license
   implementation-type: formal description
   host-language: ALPACA
   in-distribution: Jaccia and Jacciata distribution
   prebuilt-for-platforms:
   - Perl
+  - Javascript
   license: BSD license
   implementation-type: formal description
   host-language: ALPACA
   in-distribution: REDGREEN distribution
   prebuilt-for-platforms:
   - Perl
+  - Javascript
   license: BSD license
   implementation-type: formal description
   host-language: ALPACA

data/other-languages.yaml

     title: Speed Up Your Javascript Load Time
     description: Assorted useful tips for, uh, speeding up Javascript load time
 
-# XXX implementation of Javascript.  I could add web browsers
-# to Chrysoberyl.  But I don't care.
+Firefox:
+  type: Implementation
+  reference: false
+  implementation-of:
+  - Javascript
+  implementation-type: interpreter
+  host-language: C++
+  license: MPL 2.0
+  prebuilt-for-platforms:
+  - native code
+  links:
+  - http://www.mozilla.org/
+  commentary: |
+    Yes, I know Firefox is more than just an implementation of Javascript,
+    and Javascript is actually implemented by the mumbleMonkey engine
+    *inside* Firefox.
+    But it's useful to have something to recommend to you to use, when
+    we have something that's written in Javascript, like [[yoob.js]] or
+    the output of the [[ALPACA]] compiler.
 
 
 Lisp: 

src/chrysoberyl/renderer.py

             given noun phrase.
 
             """
+            if text[-5:] == 'maton':
+                return text[:-5] + 'mata'
             if text[-1:] == 's':
                 return text + 'es'
             elif text[-1:] == 'y':
             """
             languages = []
             types = ('Programming Language', 'Programming Language Family',
-                     'Conlang')
+                     'Conlang', 'Automaton')
             for thing in self.data:
                 node = self.data[thing]
                 if (node['type'] in types and

templates/Automaton.html

 {% extends "Programming Language.html" %}
+
+{% block properties %}
+
+{% if sample_html %}
+  <h2>Sample Configuration</h2>
+  <div class="sample">{{ sample_html }}</div>
+  {% if sample_input_html %}
+    <p>Input:</p>
+    <div class="sample">{{ sample_input_html }}</div>
+  {% endif %}
+  {% if sample_output_html %}
+    <p>Output:</p>
+    <div class="sample">{{ sample_output_html }}</div>
+  {% endif %}
+  {% if sample_credit %}
+    <p>This sample was written by {{ link(sample_credit) }}</p>
+  {% endif %}
+{% endif %}
+
+{% if computational_class %}
+  <h2>Computational Class</h2>
+  <p>{{ link(computational_class) }}</p>
+{% endif %}
+
+{% if member_of %}
+  <h2>Member of Automaton Family</h2>
+  <p>{{ link(member_of) }}</p>
+{% endif %}
+
+{% if variant_of %}
+  <h2>Variant of</h2>
+  <p>{{ link(variant_of) }}</p>
+{% endif %}
+
+{% if paradigms %}
+  <h2>Paradigms</h2>
+  <ul>
+    {% for paradigm in paradigms %}
+      <li>
+          {{ link(paradigm) }}
+      </li>
+    {% endfor %}
+  </ul>
+{% endif %}
+
+{% endblock properties %}

templates/bylined.html

         {% elif development_stage == 'work in progress' %}
           A work-in-progress
         {% else %}
-          A
+          {% if type in ['Automaton'] %}An{% else %}A{% endif %}
         {% endif %}
-        {% if genre and type not in ['Programming Language', 'Programming Language Family', 'Conlang'] %}
+        {% if genre and type not in
+              ['Programming Language', 'Programming Language Family',
+               'Conlang', 'Automaton'] %}
           {{ link(genre, lower=true) }}
         {% endif %}
         {{ link(type, lower=true) }}
-        {% if genre and type in ['Programming Language', 'Programming Language Family', 'Conlang'] %}
+        {% if genre and type in
+              ['Programming Language', 'Programming Language Family',
+               'Conlang', 'Automaton'] %}
           in the genre of {{ link(genre, lower=true) }}
         {% endif %}
         by {{ linked_list(authors) }}
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.