number sections and add header

This commit is contained in:
Renaud Pawlak 2015-11-27 15:09:05 +01:00
parent 2a77994d15
commit 19861ca163
4 changed files with 16 additions and 2 deletions

11
doc/header.md Normal file
View File

@ -0,0 +1,11 @@
JSweet Language Specifications
==============================
Version: 1.0.0
Author: Renaud Pawlak
JSweet JavaDoc API: http://www.jsweet.org/core-api-javadoc/
Content
-------

View File

@ -5,6 +5,8 @@ Version: 1.0.0
Author: Renaud Pawlak
JSweet JavaDoc API: http://www.jsweet.org/core-api-javadoc/
Content
-------
@ -520,7 +522,7 @@ String m(String s) { return s; }
### Ambient declarations
It can be the case that programmers need to use existing libraries from JSweet. In most cases, one should look up in the available candies (<http://www.jsweet.org/candies-releases/>, which are automatically generated from TypeScripts DefinitelyTyped. When the candy does not exist, or does not entirely cover what is needed, one can use the `@jsweet.lang.Ambient` annotation, which will make available to the programmers a class definition or an interface. The following example, shows the backbone store classes made accessible to the JSweet programmer with a simple ambiant declaration. This class will be erased during the JavaScript generation.
It can be the case that programmers need to use existing libraries from JSweet. In most cases, one should look up in the available candies (<http://www.jsweet.org/candies-releases/>), which are automatically generated from TypeScripts DefinitelyTyped. When the candy does not exist, or does not entirely cover what is needed, one can use the `@jsweet.lang.Ambient` annotation, which will make available to the programmers a class definition or an interface. The following example, shows the backbone store classes made accessible to the JSweet programmer with a simple ambiant declaration. This class will be erased during the JavaScript generation.
``` java
@Ambient

View File

@ -550,7 +550,7 @@ String m(String s) { return s; }
\section{Ambient declarations}
It can be the case that programmers need to use existing libraries from JSweet. In most cases, one should look up in the available candies (\url{http://www.jsweet.org/candies-releases/}, which are automatically generated from TypeScript's DefinitelyTyped. When the candy does not exist, or does not entirely cover what is needed, one can use the \texttt{@jsweet.lang.Ambient} annotation, which will make available to the programmers a class definition or an interface. The following example, shows the backbone store classes made accessible to the JSweet programmer with a simple ambiant declaration. This class will be erased during the JavaScript generation.
It can be the case that programmers need to use existing libraries from JSweet. In most cases, one should look up in the available candies (\url{http://www.jsweet.org/candies-releases/}), which are automatically generated from TypeScript's DefinitelyTyped. When the candy does not exist, or does not entirely cover what is needed, one can use the \texttt{@jsweet.lang.Ambient} annotation, which will make available to the programmers a class definition or an interface. The following example, shows the backbone store classes made accessible to the JSweet programmer with a simple ambiant declaration. This class will be erased during the JavaScript generation.
\begin{lstlisting}[language=Java]
@Ambient

View File

@ -136,6 +136,7 @@
<argument>--base-header-level=2</argument>
<argument>-s</argument>
<argument>--toc</argument>
<argument>--number-sections</argument>
<argument>-B</argument>
<argument>header.md</argument>
<argument>-o</argument>