Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Hello Program in lower case; refactor parseCommand

  • Loading branch information...
commit f74c4340ed551634e665dc90cff923119ad05510 1 parent e58b814
@ajlopez authored
Showing with 2 additions and 7 deletions.
  1. +1 −6 lib/cobolscript.js
  2. +1 −1  samples/hellopgm/hello.cob
View
7 lib/cobolscript.js
@@ -190,12 +190,7 @@ var cobolscript = (function() {
}
this.parseCommand = function() {
- var token = lexer.nextToken();
-
- if (!token)
- return null;
-
- if (token.value && token.value == "DISPLAY")
+ if (tryParseName("display"))
{
var expr = parseExpression();
View
2  samples/hellopgm/hello.cob
@@ -1 +1 @@
-IDENTIFICATION DIVISION.
+identification division.
Please sign in to comment.
Something went wrong with that request. Please try again.