Skip to content
This repository has been archived by the owner on Jun 4, 2019. It is now read-only.

Commit

Permalink
archi_code_lexer: more stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
pad committed Oct 20, 2010
1 parent 70a9110 commit 1fba551
Showing 1 changed file with 21 additions and 6 deletions.
27 changes: 21 additions & 6 deletions h_program-lang/archi_code_lexer.mll
Expand Up @@ -115,7 +115,9 @@ rule category = parse
| "security" { Security }

| "lite" { MiniLite }
| "mini" { MiniLite }
(* too many false positives, like mini in mono
| "mini" { MiniLite }
*)

| "/tests/"
| "/test/"
Expand Down Expand Up @@ -223,6 +225,13 @@ rule category = parse
| "/power/"
| "/powerpc/"
| "/alpha/"
(* gcc source *)
| "rs6000"
| "h8300"
| "/vax/"
| "sh64"
| "/cris/"
| "/frv/"
{ Architecture }

(* plan9 source *)
Expand All @@ -242,10 +251,11 @@ rule category = parse
| "/vms"
| "minix"
| "/dos/"
| "mswin"
{ OS }

| "dns"
| "ftp"
| "ftp"
| "ssh"
| "http"
| "smtp"
Expand All @@ -269,22 +279,27 @@ rule category = parse
| "scanne"
| "parse"
| "lexer"
| "token."
| "tokeniz"
| "token" (* false positive with security stuff ? *)
| "/gram."
| "/scan."
| "grammar"

(* invent UnParsing category ? do also print ? *)
| "pretty_print"
{ Parsing }

| "/ui/"
| "/gui/"
| "visual"
| "image"
| "display"
| "render"
| "/video/"
| "/media/"
| "screen"
| "visual"
| "image"
| "jpeg"
| "/ui."
| "window"
{ Ui }

| "/gtk/"
Expand Down

0 comments on commit 1fba551

Please sign in to comment.