1
0
forked from GitHub/gf-core

gfse: some correctness checks for concrete syntax

The editor now calls the GF server to check the syntax of expressions that
are part of concrete syntax (except for parameter types).
This is currently done by using the cc command of the GF shell, which puts
some unnecessary restricitons on operation definitions...
This commit is contained in:
hallgren
2011-07-29 15:44:19 +00:00
parent 7c6f6110eb
commit b58fc79908
4 changed files with 55 additions and 29 deletions

View File

@@ -219,6 +219,13 @@ case "$REQUEST_METHOD" in
*) error400
esac
;;
cc=*)
# Just to check an expression for syntax errors
exp=$(qparse "$QUERY_STRING" cc)
ContentType="text/plain; charset=$charset"
cgiheaders
echo "cc $exp" | GF_RESTRICTED=True gf -run
;;
*) error400
esac
esac