diff options
author | Constantin Jucovschi <cj@ubuntu.localdomain> | 2009-04-24 07:20:22 -0400 |
---|---|---|
committer | Constantin Jucovschi <cj@ubuntu.localdomain> | 2009-04-24 07:20:22 -0400 |
commit | 8f27e65bddd7d4b8515ce620fb485fdd78fcdf89 (patch) | |
tree | bd328a4dd4f92d32202241b5e3a7f36177792c5f /qlparser/rasml.awk | |
download | rasdaman-upstream-8f27e65bddd7d4b8515ce620fb485fdd78fcdf89.tar.gz rasdaman-upstream-8f27e65bddd7d4b8515ce620fb485fdd78fcdf89.tar.xz rasdaman-upstream-8f27e65bddd7d4b8515ce620fb485fdd78fcdf89.zip |
Initial commitv8.0
Diffstat (limited to 'qlparser/rasml.awk')
-rw-r--r-- | qlparser/rasml.awk | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/qlparser/rasml.awk b/qlparser/rasml.awk new file mode 100644 index 0000000..124d6ab --- /dev/null +++ b/qlparser/rasml.awk @@ -0,0 +1,9 @@ +BEGIN { paren = 0; sec = 0 } +/\%\%/ { sec += 1; next; } +sec!=1 { next; } +# /^ *$/ { next; } +/\/\// && !paren { x=$0; sub(/\/\/.*/, "", x); print x; next; } +/{/ { x=$0; sub(/\{.*/, "", x); if(!paren) print x; paren += 1; } +/(\/\*)/ { paren += 1; } +/}|(\*\/)/ { paren -= 1; next; } +!paren { print $0; } |