Code Monkey home page Code Monkey logo

py-lua-parser's People

Contributors

baurse avatar boolangery avatar nanakipl avatar oltrep avatar

Stargazers

 avatar

py-lua-parser's Issues

Weird parsing error at the beginning of some FAF files

Opening ../FAForever_GitHub/units\XSL0301\XSL0301_script.lua
line 1:0 token recognition error at: 'ï'
line 1:1 token recognition error at: '»'
line 1:2 token recognition error at: '¿'

and
Opening ../FAForever_GitHub/units/UAL0301/UAL0301_script.lua
line 1:0 token recognition error at: 'ï'
line 1:1 token recognition error at: '»'
line 1:2 token recognition error at: '¿'

Doesn't seem to effect anything, still weird though. Might be the BOM as that is a usually hidden string of three characters at the beginning of files? No clue.

FAF-Lua Version support

Add support for the FAF version of the lua language as specified in https://github.com/FAForever/lua-lang/blob/lua-5.0/HISTORY

The length operator # doesn't exist in the FAF version of the lua code as it was implemented in lua 5.1 according to Jip.
Also I implemented the BOM '#**' as a line comment for now, which should(?) be changed later.

Implemented everything from https://github.com/FAForever/lua-lang/blob/lua-5.0/HISTORY besides "the operator ^ means xor instead of pow" and the BOM mentioned above. Seemingly the ^ operator is used as exponentiation in some lua files though, so I don't know what to think/do with that.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.