Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

torchbear bindings module map #7

Open
naturallymitchell opened this issue Dec 9, 2018 · 2 comments
Open

torchbear bindings module map #7

naturallymitchell opened this issue Dec 9, 2018 · 2 comments

Comments

@naturallymitchell
Copy link
Member

naturallymitchell commented Dec 9, 2018

(related to #4)

functions and their arguments, eg:

  • module.set("to_camel_case", lua.createfunction(|, text: String| {...
  • module.set("to_table", lua.create_function(|lua, text: String| {...

these functions exist and they take strings named 'text'

  • module.set("match", lua.create_function(|_, (expr, val): (String, String)|
  • module.set("replace_all", lua.create_function(|_, (expr, val, patt): (String, String, String)| {

these have two and three arguments

@naturallymitchell
Copy link
Member Author

naturallymitchell commented Dec 11, 2018

the arguments aren't captured fully
eg

regex
match (String)) ⇒ 

regex.match takes an expr and val, which are both strings
and I think it gives back some result(?)


and if they're grouped by folder, I think it'll help a lot

@Shazbot
Copy link
Collaborator

Shazbot commented Dec 12, 2018

e181efe fixes the regex arguments parsing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants