001    package sysModel.parser;
002    
003    /**
004     * Token visitor.
005     *
006     * @author Mathias Ricken
007     */
008    public interface ITokenVisitor {
009        /**
010         * Case to be called if end of file is reached.
011         *
012         * @return visitor-specific return value
013         */
014        public Object endCase();
015    
016        /**
017         * Case to be called if a word is read.
018         *
019         * @param word word
020         * @return visitor-specific return value
021         */
022        public Object wordCase(String word);
023    
024        /**
025         * Case to be called if a number is read.
026         *
027         * @param num number
028         * @return visitor-specific return value
029         */
030        public Object numCase(double num);
031    
032        /**
033         * Case to be called if an open parenthesis is read.
034         *
035         * @return visitor-specific return value
036         */
037        public Object openCase();
038    
039        /**
040         * Case to be called if a closed parenthesis is read.
041         *
042         * @return visitor-specific return value
043         */
044        public Object closeCase();
045    
046        /**
047         * Case to be called if a comma is read.
048         *
049         * @return visitor-specific return value
050         */
051        public Object commaCase();
052    }