mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-22 01:22:51 -06:00
added picture
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
\documentclass[12pt]{article}
|
\documentclass[12pt]{article}
|
||||||
|
|
||||||
\usepackage{isolatin1}
|
\usepackage{isolatin1}
|
||||||
|
\input{psfig.sty}
|
||||||
|
|
||||||
\setlength{\oddsidemargin}{0mm}
|
\setlength{\oddsidemargin}{0mm}
|
||||||
%\setlength{\evensidemargin}{0mm}
|
%\setlength{\evensidemargin}{0mm}
|
||||||
@@ -736,10 +737,17 @@ the indexes.
|
|||||||
|
|
||||||
The theoretical ideas behind our compiler experiment
|
The theoretical ideas behind our compiler experiment
|
||||||
are familiar from various sources.
|
are familiar from various sources.
|
||||||
|
Single-source language and compiler definitions
|
||||||
|
can be built using attribute grammars \cite{knuth-attr}.
|
||||||
Building single-source language definitions with
|
Building single-source language definitions with
|
||||||
dependent types and higher-order abstract syntax
|
dependent types and higher-order abstract syntax
|
||||||
has been studied in various logical frameworks
|
has been studied in various logical frameworks
|
||||||
\cite{harper-honsell,magnusson-nordstr,twelf}.
|
\cite{harper-honsell,magnusson-nordstr,twelf}.
|
||||||
|
The addition of linearization rules to
|
||||||
|
type-theoretical abstract syntax is studied in
|
||||||
|
\cite{semBNF}, which also compares the method with
|
||||||
|
attribute grammars.
|
||||||
|
|
||||||
The idea of using a common abstract syntax for different
|
The idea of using a common abstract syntax for different
|
||||||
languages was clearly exposed by Landin \cite{landin}. The view of
|
languages was clearly exposed by Landin \cite{landin}. The view of
|
||||||
code generation as linearization is a central aspect of
|
code generation as linearization is a central aspect of
|
||||||
@@ -1118,6 +1126,18 @@ mkJVM = unlines . reverse . fst . foldl trans ([],([],0)) . lines where
|
|||||||
\normalsize
|
\normalsize
|
||||||
\newpage
|
\newpage
|
||||||
|
|
||||||
|
Show Fig~\ref{demo}
|
||||||
|
|
||||||
|
\begin{figure}
|
||||||
|
\centerline{\psfig{figure=demo2.ps}} \caption{
|
||||||
|
GF editor session where an integer
|
||||||
|
expression is to be given. The left window shows the
|
||||||
|
abstract syntax tree, and the right window the evolving C and
|
||||||
|
JVM core. The focus is shadowed, and the possible refinements
|
||||||
|
are shown in a pop-up window.
|
||||||
|
}
|
||||||
|
\label{demo}
|
||||||
|
\end{figure}
|
||||||
|
|
||||||
|
|
||||||
\end{document}
|
\end{document}
|
||||||
|
|||||||
11164
examples/gfcc/demo2.ps
Normal file
11164
examples/gfcc/demo2.ps
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user