X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flanguage%2Fexpressions%2Fpublic.h;h=105971306511e8eaef9a097f49e168364f008479;hb=5581c901aba8df3b31f6406d7fff09e26a9e7fc1;hp=53781a6797fe7ef88464464104b0600eae434dad;hpb=b37457e4db3d02fbf1e41b24baf3248bf34a02d8;p=pspp diff --git a/src/language/expressions/public.h b/src/language/expressions/public.h index 53781a6797..1059713065 100644 --- a/src/language/expressions/public.h +++ b/src/language/expressions/public.h @@ -1,47 +1,41 @@ -/* PSPP - computes sample statistics. +/* PSPP - a program for statistical analysis. Copyright (C) 1997-9, 2000 Free Software Foundation, Inc. - This program is free software; you can redistribute it and/or - modify it under the terms of the GNU General Public License as - published by the Free Software Foundation; either version 2 of the - License, or (at your option) any later version. + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. - This program is distributed in the hope that it will be useful, but - WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - 02110-1301, USA. */ + along with this program. If not, see . */ #if !expr_h #define expr_h 1 #include -/* Expression parsing flags. */ -enum expr_type - { - EXPR_NUMBER = 0xf000, /* Number. */ - EXPR_STRING, /* String. */ - EXPR_BOOLEAN, /* Boolean (number limited to 0, 1, SYSMIS). */ - }; +#include "data/val-type.h" +struct ccase; +struct dataset; struct dictionary; struct expression; -struct ccase; +struct lexer; struct pool; union value; -struct dataset ; -struct lexer ; - -struct expression *expr_parse (struct lexer *lexer, struct dataset *, enum expr_type); -struct expression *expr_parse_pool (struct lexer *, - struct pool *, - struct dataset *, - enum expr_type); + +struct expression *expr_parse (struct lexer *lexer, struct pool *, + struct dataset *, enum val_type); +struct expression *expr_parse_bool (struct lexer *lexer, struct pool *, + struct dataset *); +struct expression *expr_parse_new_variable (struct lexer *lexer, struct pool *, + struct dataset *, + const char *new_var_name); void expr_free (struct expression *); struct dataset;