X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Focaml%2Fmathql%2FmQueryTLexer.mll;fp=helm%2Focaml%2Fmathql%2FmQueryTLexer.mll;h=0000000000000000000000000000000000000000;hb=e108abe5c0b4eb841c4ad332229a6c0e57e70079;hp=0075f3ac1bb4ad1ff882cc96b743eabd1850387d;hpb=1456c337a60f6677ee742ff7891d43fc382359a9;p=helm.git diff --git a/helm/ocaml/mathql/mQueryTLexer.mll b/helm/ocaml/mathql/mQueryTLexer.mll deleted file mode 100644 index 0075f3ac1..000000000 --- a/helm/ocaml/mathql/mQueryTLexer.mll +++ /dev/null @@ -1,88 +0,0 @@ -(* Copyright (C) 2000, HELM Team. - * - * This file is part of HELM, an Hypertextual, Electronic - * Library of Mathematics, developed at the Computer Science - * Department, University of Bologna, Italy. - * - * HELM 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. - * - * HELM 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 HELM; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, - * MA 02111-1307, USA. - * - * For details, see the HELM World-Wide-Web page, - * http://cs.unibo.it/helm/. - *) - -(******************************************************************************) -(* *) -(* PROJECT HELM *) -(* *) -(* Ferruccio Guidi *) -(* 23/05/2002 *) -(* *) -(* *) -(******************************************************************************) - -{ - open MQueryTParser -} - -let SPC = [' ' '\t' '\n']+ -let ALPHA = ['A'-'Z' 'a'-'z'] -let NUM = ['0'-'9'] -let IDEN = ALPHA (NUM | ALPHA)* -let DQ = '"' -let SQ = ''' -let QSTR = [^ ''']* -let USTR = [^ '"' ':' '/' '#' '?' '*']+ - -rule rtoken = parse - | DQ { DQT } - | ":/" { PROT } - | "/" { SLASH } - | "#1" { FRAG } - | "?" { QUEST } - | "**" { SSTAR } - | "*" { STAR } - | USTR { STR (Lexing.lexeme lexbuf) } -and stoken = parse - | SQ { SQT } - | QSTR { STR (Lexing.lexeme lexbuf) } -and qtoken = parse - | SPC { qtoken lexbuf } - | '(' { LPR } - | ')' { RPR } - | '$' { DLR } - | SQ { STR (qstr stoken lexbuf) } - | DQ { REF (ref rtoken lexbuf) } - | "name" { NAME } - | "mainconclusion" { MCONCL } - | "conclusion" { CONCL } - | "true" { TRUE } - | "false" { FALSE } - | "and" { AND } - | "or" { OR } - | "not" { NOT } - | "is" { IS } - | "select" { SELECT } - | "in" { IN } - | "where" { WHERE } - | "use" { USE } - | "position" { POS } - | "usedby" { USEDBY } - | "pattern" { PATT } - | "union" { UNION } - | "intersect" { INTER } - | IDEN { ID (Lexing.lexeme lexbuf) } - | eof { EOF } -