Skip to main content
Post Closed as "Not suitable for this site" by DJMcMayhem, Blue, Riker, CommunityBot, cat
add interpreter tag
Link
luser droog
  • 5k
  • 2
  • 37
  • 61
changed parser to interpreter
Source Link
TheDoctor
  • 8k
  • 7
  • 42
  • 70

Create a programming language parserinterpreter

Task:

You must create a parseran interpreter that can parse snippets of a programming language. The language does not need to be complex, but it must include the following syntactical elements:

  • Ability to assign and read variables (could be as simple as a-z being premade variables)
  • If statements (elseif and else are not required)
  • Loops (counting to an arbitrary number, user access to counter is not required)
  • Simple math with variables (addition, subtraction, multiplication, division, greater/less than, equals)
  • Print statements

Rules:

  • You may not copy the syntax of another popular language.
  • You need to write your own parserinterpreter, not modification of another parserinterpreter.
  • You can write your parserinterpreter in any language.
  • Write a 99-bottles-of-beer example program in your language (see here)
  • This is a , so the most upvoted answer wins.

Create a programming language parser

Task:

You must create a parser that can parse snippets of a programming language. The language does not need to be complex, but it must include the following syntactical elements:

  • Ability to assign and read variables (could be as simple as a-z being premade variables)
  • If statements (elseif and else are not required)
  • Loops (counting to an arbitrary number, user access to counter is not required)
  • Simple math with variables (addition, subtraction, multiplication, division, greater/less than, equals)
  • Print statements

Rules:

  • You may not copy the syntax of another popular language.
  • You need to write your own parser, not modification of another parser.
  • You can write your parser in any language.
  • Write a 99-bottles-of-beer example program in your language (see here)
  • This is a , so the most upvoted answer wins.

Create a programming language interpreter

Task:

You must create an interpreter that can parse snippets of a programming language. The language does not need to be complex, but it must include the following syntactical elements:

  • Ability to assign and read variables (could be as simple as a-z being premade variables)
  • If statements (elseif and else are not required)
  • Loops (counting to an arbitrary number, user access to counter is not required)
  • Simple math with variables (addition, subtraction, multiplication, division, greater/less than, equals)
  • Print statements

Rules:

  • You may not copy the syntax of another popular language.
  • You need to write your own interpreter, not modification of another interpreter.
  • You can write your interpreter in any language.
  • Write a 99-bottles-of-beer example program in your language (see here)
  • This is a , so the most upvoted answer wins.
Tweeted twitter.com/#!/StackCodeGolf/status/440300992010399744
Source Link
TheDoctor
  • 8k
  • 7
  • 42
  • 70

Create a programming language parser

Task:

You must create a parser that can parse snippets of a programming language. The language does not need to be complex, but it must include the following syntactical elements:

  • Ability to assign and read variables (could be as simple as a-z being premade variables)
  • If statements (elseif and else are not required)
  • Loops (counting to an arbitrary number, user access to counter is not required)
  • Simple math with variables (addition, subtraction, multiplication, division, greater/less than, equals)
  • Print statements

Rules:

  • You may not copy the syntax of another popular language.
  • You need to write your own parser, not modification of another parser.
  • You can write your parser in any language.
  • Write a 99-bottles-of-beer example program in your language (see here)
  • This is a , so the most upvoted answer wins.