Code

time: Added sdb_strpunit() to parse a time unit.
[sysdb.git] / src / frontend / scanner.l
index 5e80368d532872198edb7ea7bfb45dd60a9f0225..f45fbe76bdbb86370e27cf4d4583275414831d34 100644 (file)
@@ -75,10 +75,16 @@ csc_start   \/\*
 csc_inside     ([^*/]+|[^*]\/|\*[^/])
 csc_end                \*\/
 
+/*
+ * Strings and identifiers.
+ */
 identifier     ([A-Za-z_][A-Za-z_0-9$]*)
 /* TODO: fully support SQL strings */
 string         ('[^']*')
 
+/*
+ * Numeric constants.
+ */
 dec                    ([\+\-]?[0-9]+)
 exp                    ([\+\-]?[0-9]+[Ee]\+?[0-9]+)
 integer                ({dec}|{exp})