Skip to content

Commit

Permalink
Add OpenEdge ABL lexer
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphael Hittich committed Nov 15, 2018
1 parent e957c74 commit 2ef6de8
Show file tree
Hide file tree
Showing 4 changed files with 480 additions and 0 deletions.
26 changes: 26 additions & 0 deletions lib/rouge/demos/openedge
@@ -0,0 +1,26 @@
/* This .W file was created with the Progress UIB. */

&ANALYZE-SUSPEND _VERSION-NUMBER UIB_v8r12

DEFINE VARIABLE w AS HANDLE NO-UNDO.

CREATE WINDOW w ASSIGN
WIDTH = 50
HEIGHT = 5
MESSAGE-AREA = FALSE
STATUS-AREA = FALSE.

CURRENT-WINDOW = w.

DEFINE BUTTON btnOK LABEL "OK" SIZE 12 BY 1.2.
FORM
"Hello World!" VIEW-AS TEXT AT COL 20 ROW 2
btnOK AT COL 20 ROW 4
WITH FRAME f SIZE 50 BY 5 NO-BOX THREE-D.

VIEW FRAME f.
ENABLE btnOK WITH FRAME f.
WAIT-FOR "CHOOSE" OF btnOK.
DELETE OBJECT w.

&ANALYZE-RESUME

2 comments on commit 2ef6de8

@viitaset
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this lexer ignore keyword casing or do we need to have another set for lower case keywords?

@pyrmont
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@viitaset The rule that matches id uses String#casecmp to match regardless of case (this has its own problems as I commented on in my code review).

Please sign in to comment.