1. xemacs
  2. semantic

Source

semantic / java.bnf

Diff from to

File java.bnf

  • Ignore whitespace
 
 %(progn
    (setq
+    ;; Java numbers
+    semantic-number-expression semantic-java-number-regexp
     ;; Java is case sensitive
     semantic-case-fold nil
     ;; special handling of multiple variable declarations/statement
     ;; Semantic navigation inside 'type children
     senator-step-at-token-ids '(function variable)
     )
-   ;; Needed by `semantic-find-doc-snarf-comment'.
-   (set (make-local-variable 'block-comment-end) "\\s-*\\*/")
    )%
 
 %token ABSTRACT     "abstract"
 # - `with-ref' (optional) if non-nil indicates that the tag is
 #   followed by a reference like in "@see <reference>".
 
-%token AUTHOR      "author"
-%put   AUTHOR      javadoc (seq 1 usage (type))
-%token VERSION     "version"
-%put   VERSION     javadoc (seq 2 usage (type)) 
-%token PARAM       "param"
-%put   PARAM       javadoc (seq 3 usage (function) with-name t) 
-#%token RETURN      "return"
-%put   RETURN      javadoc (seq 4 usage (function)) 
-%token EXCEPTION   "exception"
-%put   EXCEPTION   javadoc (seq 5 usage (function) with-name t) 
-#%token THROWS      "throws"
-%put   THROWS      javadoc (seq 6 usage (function) with-name t) 
-%token SEE         "see"
-%put   SEE         javadoc (seq 7 usage (type function variable) opt t with-ref t) 
-%token SINCE       "since"
-%put   SINCE       javadoc (seq 8 usage (type function variable) opt t) 
-%token SERIAL      "serial"
-%put   SERIAL      javadoc (seq 9 usage (variable) opt t) 
-%token SERIALDATA  "serialData"
-%put   SERIALDATA  javadoc (seq 10 usage (function) opt t) 
-%token SERIALFIELD "serialField"
-%put   SERIALFIELD javadoc (seq 11 usage (variable) opt t) 
-%token DEPRECATED  "deprecated"
-%put   DEPRECATED  javadoc (seq 12 usage (type function variable) opt t) 
+%token _AUTHOR      "@author"
+%put   _AUTHOR      javadoc (seq 1 usage (type))
+%token _VERSION     "@version"
+%put   _VERSION     javadoc (seq 2 usage (type)) 
+%token _PARAM       "@param"
+%put   _PARAM       javadoc (seq 3 usage (function) with-name t) 
+%token _RETURN      "@return"
+%put   _RETURN      javadoc (seq 4 usage (function)) 
+%token _EXCEPTION   "@exception"
+%put   _EXCEPTION   javadoc (seq 5 usage (function) with-name t) 
+%token _THROWS      "@throws"
+%put   _THROWS      javadoc (seq 6 usage (function) with-name t) 
+%token _SEE         "@see"
+%put   _SEE         javadoc (seq 7 usage (type function variable) opt t with-ref t) 
+%token _SINCE       "@since"
+%put   _SINCE       javadoc (seq 8 usage (type function variable) opt t) 
+%token _SERIAL      "@serial"
+%put   _SERIAL      javadoc (seq 9 usage (variable) opt t) 
+%token _SERIALDATA  "@serialData"
+%put   _SERIALDATA  javadoc (seq 10 usage (function) opt t) 
+%token _SERIALFIELD "@serialField"
+%put   _SERIALFIELD javadoc (seq 11 usage (variable) opt t) 
+%token _DEPRECATED  "@deprecated"
+%put   _DEPRECATED  javadoc (seq 12 usage (type function variable) opt t) 
 
 # --------
 # Grammar
                 | type_declaration
                 ;
   
-number : symbol "[0-9]" punctuation "\\." symbol "[0-9Ee]"
-         punctuation "[-+]" symbol "[0-9fFdD]"
-       | symbol "[0-9]" punctuation "\\." symbol "[0-9EefFdD]"
-       | symbol "[0-9fFdD]"
-       ;
-  
 literal : number
         | qualified_name
         | string