kr.angelov
027fd911b6
fix for linearization with 'pre'
2013-09-03 08:58:04 +00:00
kr.angelov
df26b134fc
fix in the GF compiler and runtime which let us to define pre construct detecting whether this is the last token.
2013-09-03 07:51:25 +00:00
hallgren
b8ce5ef5b3
PGF.hs: export function missingLins
...
Also in Commands.hs: be explicit about things imported from the PGF library
that are not in the public API.
Also a couple of haddock documentation fixes.
2013-04-08 15:38:11 +00:00
kr.angelov
f8fe23fda7
A basic infrastructure for generating Teyjus bytecode from the GF abstract syntax
2012-08-29 11:43:02 +00:00
hallgren
07af8988d3
PGF run-time library: function names in BracketedString (experimental)
...
+ Make room for function names in the BracketedString data structure.
+ Fill in function names when linearizing an abstract syntax tree to a
BracketedString.
+ Fill in wildCId when it is not obvious what the function is.
+ Function bracketedLinearize: for compatibility with the other linearization
functions, return Leaf "" instead of error "cannot linearize".
+ Export flattenBracketedString from module PGF.
+ PGFServce: make function names available in the JSON representation of
BracketedString.
2012-03-18 20:12:26 +00:00
krasimir
b6446ec36d
simple refactoring in PGF.Macros and related
2010-12-06 14:19:51 +00:00
krasimir
aa6b07afdb
when we print the bracketed string it is useful to print the attached metavariables as well
2010-10-25 12:21:12 +00:00
krasimir
cb8795c222
refactor the API for random generation again. Now PGF contains probabilities in the abstract syntax
2010-10-02 13:03:57 +00:00
krasimir
b0e110cf4f
native representation for HOAS in PMCFG and incremental type checking of the parse forest
2010-08-09 10:10:08 +00:00
krasimir
5ae7be358d
redesign the open-literals API
2010-07-01 08:51:59 +00:00
krasimir
272dcf6917
introduce the type synonym Token=String in the PGF API
2010-06-29 09:00:41 +00:00
krasimir
992a7ffb38
Yay!! Direct generation of PMCFG from GF grammar
2010-06-18 12:55:58 +00:00
krasimir
5dfc9bbc0b
the automatically generated printnames were just junks. Now we store printnames only if they are explicitly specified.
2010-06-18 10:19:05 +00:00
krasimir
d6f32b3bcd
dead code elimination for PGF. Note: the produced grammars will not work well with metavariables and high-order abstract syntax
2010-06-09 11:32:59 +00:00
krasimir
4e35f7e5ec
filter the duplications when doing 'l -table'
2010-06-09 10:21:13 +00:00
krasimir
e0dc9c80a6
now every BracketedString also has reference to the source expression(s)
2010-05-19 13:32:39 +00:00
krasimir
1743e88192
added function lengthBracketedString
2010-05-19 12:40:07 +00:00
krasimir
4e85f8ada3
refactor BracketedString
2010-05-01 21:02:32 +00:00
krasimir
8460598801
first incarnation of the bracketed string API
2010-04-30 14:36:06 +00:00
krasimir
24d2acf097
fix the molto-molto-molto problem
2010-04-12 13:55:40 +00:00
aarne
7a14507189
in the shell, permit 3-letter lang codes as concrete syntax names
2010-04-04 20:46:36 +00:00
krasimir
68482aa7e9
now for every category we store, in PGF, the list of functions for it in source-code order. The order matters for the termination of the exhaustive generation with dependent types.
2010-03-24 11:11:55 +00:00
krasimir
3b7e39fa4a
bugfix in the PGF typechecker and more test cases
2010-01-29 21:10:14 +00:00
krasimir
890d455793
cleanup the code of the PGF interpreter and polish the binary serialization to match the preliminary specification
2010-01-27 09:39:14 +00:00
krasimir
9b362ff231
PGF is now real synchronous PMCFG
2010-01-17 21:35:36 +00:00
krasimir
af13bae2df
now the linearization is completely based on PMCFG
2010-01-17 17:05:21 +00:00
krasimir
cf22bd094f
move the definitions of _B and _V to PGF.Macros
2010-01-12 14:36:41 +00:00
krasimir
3ed19a482e
printnames are now kept as String instead of Term in PGF
2010-01-05 07:05:41 +00:00
krasimir
f85232947e
reorganize the directories under src, and rescue the JavaScript interpreter from deprecated
2009-12-13 18:50:29 +00:00