mirror of
https://github.com/cincheo/jsweet.git
synced 2025-12-15 07:19:22 +00:00
number sections and add header
This commit is contained in:
parent
2a77994d15
commit
19861ca163
11
doc/header.md
Normal file
11
doc/header.md
Normal 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
|
||||
-------
|
||||
@ -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 TypeScript’s 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 TypeScript’s 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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user