Skip to content

petrspelos/hpl2-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hpl2-parser

A parser for HPL2's scripting language (AngelScript 2.19.2)

Prototype Goal

The goal is to create a parser that will be able to validate a script file for Amnesia: The Dark Descent. It should catch the following problems:

  • Calling a function that is not declared either in a script, or in Amnesia's API
  • Common Syntax problems such as missing parenthesis or semicolons

Progress

*Recognize in this context means the generated Abstract Syntax Tree (AST) contains the correct values and types

  • Recognize a function declaration
  • Recognize a function call (1/?)
    • Recognize a parameterless function call
    • Recognize a function call with parameters that are all literal values
  • Recognize variable declaration
  • Recognize a function call (2/?)
    • Recognize a function call with literal AND variable parameters
    • Recognize a function call with literal, variable, AND function call parameters
  • ... plan the next set of goals ...

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages